How do I link in more than one COFF file during the process of making an exe?
HassanAA33@aol.com
HassanAA33@aol.com
Wed Apr 18 23:39:00 GMT 2001
I have a source file hello.cpp. ÃÂ I also have two resource files: helloRc.rc
and helloRc2.rc. ÃÂ When I compile hello.cpp using g++.exe and helloRc.rc and
helloRc2.rc using windres.exe I end up with
the folling output files: ÃÂ hello.o, helloRc.o(COFF file), and helloRc2.o(COFF
file). Now when I link these files together using the command line:
ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ g++ -o hello.exe hello.o helloRc.o helloRc2.o
helloRc2.o does not get linked in and I can't figure out why. ÃÂ It seems as
though g++ will only accept one COFF file -- the first one listed. ÃÂ My
question is: How do I link in more than one COFF file during the process of
making an executable?
More information about the Gcc
mailing list