Kirill,

Something along the lines of:

#ifdef X11
int main(int argc, char *argv[], char *envp[])
{
 int retval;
 if (!X_init(argc, argv, envp, Xtable, Xname))
   exit(-1);
 X_main_loop();
 retval = X_close();
 return(retval);
}
#endif

should do the trick.  Without this your external will compile..but when you
try 'put the externalCommands' or 'put the externalFunctions' they'll both
be empty.

Also, you'll want to be sure to include a -I/(the path to your X11 include
dir for your distro)

-HTH

--
cb

On 3/6/07, Kirill Pekarov <[EMAIL PROTECTED]> wrote:

Hi, chris.

You wrote 05.03.2007, 19:34:44:

> You might try adding the -fpermissive flag to see
> if that helps or change to an earlier gcc version.
Yes this flag help resolve some problems.

> Its also worth noting that a Linux external is an executable that should
> contain a "main" for loading the Xtable...as opposed to the mac and
windows
> externals which are shared objects.
I don't understand, what exactly must be in the main function?

Thanks a lot!

--
Best regards,

Kirill Pekarov
Software Engineer Associate
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to