GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Aug-2008, 17:30
cardude cardude is offline
New Member
 
Join Date: Aug 2008
Posts: 2
cardude is on a distinguished road

jGrasp Compile Error


I am trying to compile a program in jGrasp, but every time I try I receive an error -
Quote:
----jGRASP exec: g++ -g C:\Users\Christopher\Documents\New Folder\Hello World.cpp

----jGRASP wedge2 error: command "g++" not found.
---- This command must be in the current working directory
---- or on the current PATH to use this function.
---- PATH is "C:\cygwin\bin;C:\Windows\system32;C:\Windows;C:\W indows\System32\Wbem;C:\PROGRA~2\COMMON~1\ULEADS~1 \MPEG".
----jGRASP: operation complete.
  #2  
Old 27-Aug-2008, 18:06
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,463
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: jGrasp Compile Error


Quote:
Originally Posted by cardude
----jGRASP wedge2 error: command "g++" not found.
...so is g++ installed within cygwin? If not, then run the cygwin setup, and pick g++ from the development list of packages.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 28-Aug-2008, 14:50
cardude cardude is offline
New Member
 
Join Date: Aug 2008
Posts: 2
cardude is on a distinguished road

Re: jGrasp Compile Error


Ok, so I installed it making sure g++ was checked. Now I receive the following error -
Code:
----jGRASP exec: g++ -g C:\Users\Christopher\Documents\New Folder\Hello World.cpp g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files 15 [main] g++ 3972 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x1, errno 11 g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files 1608150 [main] g++ 3972 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x1, errno 11 g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files 4095006 [main] g++ 3972 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x1, errno 11 g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files g++: no input files 8690953 [main] g++ 3972 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x1, errno 11 g++: fork: Resource temporarily unavailable ----jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete.

I just wanted to see if it worked, so here is the code I used -
CPP / C++ / C Code:
#include <iostream.h>

main()
{
    cout << "Hello World!";
    return 0;
}
Last edited by admin : 28-Aug-2008 at 21:04. Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
  #4  
Old 28-Aug-2008, 17:52
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,463
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: jGrasp Compile Error


I don't think that g++ accepted that path (having spaces) as a valid input file.

One thing to try, is to replace the spaces with underscores, and that should help. But if not, post another reply.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #5  
Old 29-Sep-2009, 20:48
lbarowski lbarowski is offline
New Member
 
Join Date: Sep 2009
Posts: 1
lbarowski is on a distinguished road

Re: jGrasp Compile Error


Spaces aren't the problem unless it's a very old version of jGRASP (like ten years old).

You can turn on "Settings" / "Verbose Messages" in jGRASP to see the full path to the g++ that gets called and the quoted arguments (labeled as "actual command sent").

I'm guessing that you're missing something else from Cygwin (maybe the "wrong" preprocessor is being called or something). If you have the disk space, the easiest thing is just to install everything from Cygwin (takes a while though). Otherwise, you can add a "-v" flag to the compile-and-link command to see the details of what "g++" is doing.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two-Tier data dissemination code installation problem nidhibansal1984 Computer Software Forum - Linux 6 16-Sep-2007 10:13
Linked Lists advice request promsan C Programming Language 74 23-May-2007 08:29
Major newbie problem cynack MS Visual C++ / MFC Forum 1 08-Apr-2007 11:25
Winsock error when compiling FLTK 2.0 Projects mauriciorossi FLTK Forum 3 16-Aug-2005 10:18
Help with syntax errors PeteGallo C Programming Language 7 08-Aug-2005 20:30

Network Sites: GIDNetwork · GIDApp · GIDBlog · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 12:04.


vBulletin, Copyright © 2000 - 2014, Jelsoft Enterprises Ltd.