From: "Fausto Arinos Barbuto" Newsgroups: comp.os.msdos.djgpp Subject: Re: Question about RHIDE Date: Tue, 26 Aug 2003 08:34:04 -0600 Lines: 48 Message-ID: References: NNTP-Posting-Host: cferd021.cfertech.com (128.144.90.21) X-Trace: news.uni-berlin.de 1061908371 8866997 128.144.90.21 (16 [184581]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Rafael García" 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