From: Jeff B. <jb...@qn...> - 2002-03-28 22:01:24
|
Here's my problem. I have a bunch of (static) libs I've built with gcc using mingw under QNX6 (I built my own mingw gcc for this). Now I want to statically link these libs with a project that I'm building in MS Visual C++ 6.0. The problem is that I get an 'Unable to resolve external symbol' error for '__alloca' for each lib. Is there some magic I need to do while building gcc or can I solve the problem somehow in my MSVC project? |
From: <dan...@ya...> - 2002-03-28 22:42:43
|
--- Jeff Baker <jb...@qn...> wrote: > Here's my problem. I have a bunch of (static) libs I've built with gcc > using mingw under QNX6 (I built my own mingw gcc for this). Now I want > to statically link these libs with a project that I'm building in MS > Visual C++ 6.0. The problem is that I get an 'Unable to resolve > external symbol' error for '__alloca' for each lib. Is there some magic > I need to do while building gcc or can I solve the problem somehow in my > MSVC project? > > One trick that work for me in the past with a similar problem with a non-GCC Fortran compiler was to go into /lib/gcc-lib/mingw32/2.95.3-6 (where libgcc.a lives), extract _chstk.o from libgcc.a using: ar -x libgcc.a _chkstk.o and then put that _chkstk.o into your project. Danny > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users http://www.sold.com.au - SOLD.com.au Auctions - 1,000s of Bargains! |