From: Earnie B. <ea...@us...> - 2004-08-25 12:00:52
|
Michael Gerdau wrote: >>1) I am trying to port the DemoGL (http://www.sd.nl/demogl) framework to >>mingw. The .lib file is formatted for M$VC. So I need to regenerate the >>libxxx.a file. >> >> > >A couple of days ago this was discussed already. The thread was >about "JNI problem". FYC I've copied the IMO most relevant answer >into this email: >You need to convert the jvm.lib to gcc's .a format. Use the 'reimp' tool from >http://mywebpage.netscape.com/yongweiwu/, link against the converted library >and everything will work. > > > >>3) I used the pexports utility to generate the libDemoGL_Dll.def and >>obtained something strange (full file hereunder) >> >>pexports \winnt\system32\DemoGL_Dll > >>C:\Dev-Cpp\demogl_sdk_v131\Lib\DemoGL_Dll.def >> >>?DEMOGL_AppEnd@@YAXXZ >>?DEMOGL_AppRun@@YAHQAUHINSTANCE__@@PBUSStartupDat@@PBD_NEEH@Z >>?DEMOGL_ConsoleLogLine@@YAX_NPBD@Z >>?DEMOGL_ConsoleLogLineV@@YAX_NPBDZZ >> >> > >These are decorated names. I don't know wether that's what you want >but for gcc/mingw it should work. > >But then mingw/gcc should be able to create the libxxx.a directly. >More precisely it should be able to link against the dll directly >(the dll was created using gcc/mingw, wasn't ?? If not then the >above decorated names most certainly won't work for mingw/gcc anyway). > > > Right, you can't mix C++ objects built with differing compilers and link them together. Earnie -- http://www.mingw.org http://sourceforge.net/projects/mingw https://sourceforge.net/donate/index.php?user_id=15438 |