i have a libxxx.a file that i want to link with a c++ program using g++.
if i compile like this:
g++ -c main.cpp
g++ main.o libxxx.a
i get a bunch of "undefined references" to functions in the library.
although if i write main.cpp in c
and do the same procedure above with gcc everything works.
what do you have to do to get the g++ linker to work with c libraries.
seems like to me like it should work automagically.
any help would be appreciated.
thanks,
tod.
-----------------------------------------------------------------
Todd Gureckis Webmaster http://kvrx.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
http://www.adid.net/ "Linux -- the choice of
phone: (512)415-5196 the GNU Generation"
-----------------------------------------------------------------
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]