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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to