[arch-general] C++ program compiliation failed
Magnus Therning
magnus at therning.org
Sun Nov 14 19:27:01 CET 2010
On 14/11/10 18:24, Frank Thieme wrote:
> On Sunday 14 November 2010 18:59:28 Nilesh Govindarajan wrote:
>> How am I supposed to compile the program? i.e. in general a multifile
>> program having .hs and .cpps
>
> I should work the way you did. I guess you have an error in your source code.
>
> The oder method would be:
>
> g++ -c main.cpp
> g++ -c querystring.cpp
> g++ -o out main.o querystring.o
Order is important. I think he'd have more luck with the last line
changed to
g++ -o out querystring.o main.o
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20101114/aacbb5a5/attachment.bin>
More information about the arch-general
mailing list