From: Rich C. <ric...@gm...> - 2007-11-16 00:36:59
|
When I change over to using dllspec, I get a bunch of errors like: gcc -o _build/binaries/io_static.exe _build/objs/main.o ../_build/lib/ libiovmall.a _build/objs/main.o: In function `main': /home/Customer/io/tools/source/main.c:36: undefined reference to `__imp__IoState_new' /home/Customer/io/tools/source/main.c:40: undefined reference to `__imp__IoState_init' /home/Customer/io/tools/source/main.c:41: undefined reference to `__imp__IoState_argc_argv_' /home/Customer/io/tools/source/main.c:42: undefined reference to `__imp__IoState_runCLI' /home/Customer/io/tools/source/main.c:43: undefined reference to `__imp__IoState_exitResult' /home/Customer/io/tools/source/main.c:51: undefined reference to `__imp__IoState_free' collect2: ld returned 1 exit status make[1]: *** [all] Error 1 make[1]: Leaving directory `/home/Customer/io/tools' make: *** [vm] Error 2 The build script creates a dll and static version. I don't have to compile 2 different object files, one with dllspec and one without, do I? On Nov 15, 2007, at 3:14 PM, Greg Chicares wrote: > On 2007-11-15 22:14Z, Rich Collins wrote: > [...] >> It appears that Windows has some sort of >> indirect addressing scheme. > > Usually called "thunks" on msw. > >> It works when I use dllspec w/ the >> Visual C++ compiler, but I want to use gnu make and I don't want to >> link to the VC8 CRT. > > MinGW supports __declspec(dllexport) and __declspec(dllimport), > which can generally eliminate thunks; no non-free tools needed. > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users |