Re: [Mingw-w64-public] Making an executable export symbols and link to it

2010-10-23 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/24/2010 01:50, Luis Lavena wrote: > On Sat, Oct 23, 2010 at 12:49 PM, JonY wrote: >> >> Hello, >> >> you should use a callback to set a pointer to your function in your >> executable. >> >> You don't need to link to your executable. > > Underst

Re: [Mingw-w64-public] Making an executable export symbols and link to it

2010-10-23 Thread Cesar Strauss
On 10/23/2010 01:39 PM, Luis Lavena wrote: I was attempting to port a program from Linux to Windows where certain functions are exported and used by plugin/extensions. Since the program is not a shared object, there is no import library to link with. Dear Luis, Please find attached an example

Re: [Mingw-w64-public] Making an executable export symbols and link to it

2010-10-23 Thread Luis Lavena
On Sat, Oct 23, 2010 at 12:49 PM, JonY wrote: > > Hello, > > you should use a callback to set a pointer to your function in your > executable. > > You don't need to link to your executable. Understood JonY, and is the same answer you gave me over #mingw. But the problem is that doing that way wil

Re: [Mingw-w64-public] Making an executable export symbols and link to it

2010-10-23 Thread JonY
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/23/2010 23:39, Luis Lavena wrote: > Hello, > > I was attempting to port a program from Linux to Windows where certain > functions are exported and used by plugin/extensions. Since the > program is not a shared object, there is no import library

[Mingw-w64-public] Making an executable export symbols and link to it

2010-10-23 Thread Luis Lavena
Hello, I was attempting to port a program from Linux to Windows where certain functions are exported and used by plugin/extensions. Since the program is not a shared object, there is no import library to link with. Since PE do not allow unresolved symbols to compile, I couldn't find a way to work