Mail Archives: djgpp/1998/11/08/23:10:02
Albert Yi wrote:
>
> I had the problem where I could compile with RHIDE but I couldn't link them.
> I soon received a suggestion to use g++ to link, which seems to work fine.
> Unfortunately, the file is always name a.exe for some reason.
Same as with `gcc', you use the `-o' option to specify the name of the
executable.
g++ -o foo.exe foo.cc
This comes from an old Unix tradition of executable names defaulting to
`a.out'. For DJGPP, a corresponding `.exe' is created, so the file can
actually be run.
> Also, is there
> a way to use g++ through RHIDE? It's a bit tiresome to always quit RHIDE
> to run g++ and then run RHIDE again.
It ought to link C++ correctly by default. Your problem may be that
addressed in `gnu/gcc-2.81/problems.txt'. Also see chapter 8 of the
FAQ.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -