From: Charles Terry Newsgroups: comp.os.msdos.djgpp Subject: Re: More RHIDE trouble... Date: Sun, 12 Apr 1998 06:02:55 -0700 Organization: All USENET -- http://www.Supernews.com Lines: 47 Message-ID: <3530BB7F.3ECA@plinet.com> References: <352fb0d3 DOT 5318573 AT news DOT eznet DOT net> <352FF271 DOT 422D AT plinet DOT com> <35301dfe DOT 33269768 AT news DOT eznet DOT net> NNTP-Posting-Host: 7351 AT 207 DOT 174 DOT 3 DOT 217 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ryan Twitchell wrote: > > The "bad command or file name" error occurs right before the message > "no errors" at the end of compile. The "multiple definition of main" > error comes from the linker. The Message Window says this: > "Error: foo.o: In function 'main': > Error: foo.cpp(.text+0x14): multiple definition of 'main' > Error: foo.o(.text+0x14):foo.cpp: first defined here" > > Ryan Twitchell > That combination for main would come from a command like g++ foo.o foo.cpp -o foo.exe but rhide doesn't ever generate that type of command -since it uses its builtin make it uses a compile step g++ foo.cpp -o foo.o then a link g++ -o foo.exe foo.o so- ???? Why is Rhide trying to link the same file twice!?!? One possibility would be that you have your objects being written to a different directory than your source and all the neccesary path specs are not given to Rhide. Another is that you've got the object file and the source file both specified in the project (but I think this was covered earlier in this thread?). If the above doesn't point to any solution, I would suggest deleteing the project file (foo.grp?), Create a new project foo.grp in the same directory as the source file, put just the source file in the project, and try it. Make sure rhide is being opened in the same directory as the source. You can have various paths fo files in rhide but I'd suggest making it as simple as possible to start to get the bug out. Project files (I don't know there structure) somtime get corrupted I had an occurence where rhide was rebooting the computer due to a corrupt *.grp file. good luck Charles Terry