Message-ID: <38A1DB07.86C88573@brandonsd.mb.ca> From: N J Chackowsky X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Trouble building a library file Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 13 Date: Wed, 09 Feb 2000 21:17:10 GMT NNTP-Posting-Host: 142.13.16.203 X-Trace: typhoon.mbnet.mb.ca 950131030 142.13.16.203 (Wed, 09 Feb 2000 15:17:10 CST) NNTP-Posting-Date: Wed, 09 Feb 2000 15:17:10 CST Organization: MBnet Networking Inc. To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I'm having a difficult time compiling a header file and implementation file (which involve a namespace) into an object file and thence to a library file. The code isn't too long, but I don't want to send the entire program here, so I've made it available at http://vmhs.hm/cs/trouble.htm Basically, the program will compile, but not link unless I declare a string variable in main( ). I'm hoping some programmers can have a look at the page & let me know what I'm doing wrong. Many thanks, Nick.