From: Ian Miller Newsgroups: comp.os.msdos.djgpp Subject: Re: Linking to my library sucks! Help! Date: 11 Feb 2000 10:36:04 +0000 Organization: Defence Evaluation & Research Agency Lines: 31 Message-ID: <87zot82fhn.fsf@hasn.dera.gov.uk> References: <9c DOT 19adf7a DOT 25d4e968 AT aol DOT com> NNTP-Posting-Host: 146.80.115.106 X-Newsreader: Gnus v5.7/Emacs 20.4 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Riddler02 AT aol DOT com writes: > Here are the commands RHIDE uses to build my library: > > gcc -g -c maps.cpp -o maps.o > ar rcs libmaps.a maps.o maps.o > ... ... > In maps.cpp, the definitions of these member functions are correct - all the > arguments match n' everything. Not a solution for you, I'm afraid, but a suggestion. Have you tried writing a *really* simple library? Containing one class with just a constructor and destructor that both just write to cout, say. Then you could try to link a tiny program to that library and at least confirm that you can do this at all. It wouldn't take long and if it didn't work you could post the whole thing here and get an explanation. It might also help you figure out what's going wrong with the big version. Apologies if you've done that sort of thing already; it just sounds as though you're jumping in at the deep end (to some extent) when it's easier to swim out from the shallows. Regards, Ian -- Ian Miller, Dorset, UK The views expressed above are those of the writer and do not represent the views, policy, or understanding of any other person or official body.