Mail Archives: djgpp/2003/08/26/11:03:58
"Rafael García" <rafael AT geninfor DOT com> wrote in message:
> > I am trying to run a simple "Hello, World!" program from within
> > RHIDE, but am getting a "Program Exit Code: -1 (0xffffffff)" error
> > message. What could that be? Any hints?
> Perhaps your program does not return a value. ¿Is main a void function?
> It should not. Put here your code
No, "main" is "int main(void)". But I found out how to fix the problem.
All I had to do was to remove old definitions such as LIB=C:\DJGPP\LIB
and INCLUDE=C:\DJGPP\INCLUDE from the environment variable
set. There was a C:\DJGPP\LIB inside the PATH definitions, which I
mercilessly chopped off as well. I guess those exrta definitions and
system variables were having the settings inside DJGPP.ENV confused.
My code had nothing of special, it was just a 5-liner "Hello, World!"
source (I can do better than that, believe me ;-) I built with the
purpose
of testing RHIDE. And it compiled and ran quite well in command line
mode (gcc -o hello.exe hello.c).
I fixed things by comparing the existing environment variables and
settings
on my office's computer (Win 2000), where RHIDE has always worked,
with the ones I had on my home XP machine.
> > I am a Windows XP user and have used Borland C/C++ 3.1's
> > IDE in the past (long ago) and liked it a lot. RHIDE seems to be
> > a few order of magnitudes harder than Borland's IDE, though.
> I used BC too but RHIDE is a few order of magnitudes better for me :-)
I beg to disagree, but maybe my opinion is totally biased. I used BC IDE
for a long time but am a newbie when it comes to RHIDE. To be honest
you I must say that I don't care about RHIDE, but since I had the GNU
C/C++ package installed I wanted all of its pieces in good working
condition. ;-)
Incidentally, I was told that old Borland 3.1's IDE does not work in XP.
Cheers,
---Fausto
- Raw text -