Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #21 (permalink)  
Old 07-21-2008, 12:04 PM
v0id's Avatar   
v0id v0id is offline
Retired
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,651
Last Blog:
CherryPy(thon)
Rep Power: 29
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default Re: C++ system() not working!!?!? (Cygwin bash shell?)

Like I said, if you only need the compiler then get rid of Cygwin and install MingW. MingW does only contain programming-related tools!
__________________
05-03-2007 - 11-13-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 07-21-2008, 12:32 PM
marwex89's Avatar   
marwex89 marwex89 is offline
Guru
 
Join Date: Jul 2008
Location: Viking-land!
Posts: 3,995
Rep Power: 30
marwex89 is a jewel in the roughmarwex89 is a jewel in the roughmarwex89 is a jewel in the rough
Send a message via AIM to marwex89
Default Re: C++ system() not working!!?!? (Cygwin bash shell?)

Quote:
Originally Posted by v0id View Post
Like I said, if you only need the compiler then get rid of Cygwin and install MingW. MingW does only contain programming-related tools!
Does it use the GNU g++ compiler or something different?
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 07-21-2008, 12:38 PM
v0id's Avatar   
v0id v0id is offline
Retired
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,651
Last Blog:
CherryPy(thon)
Rep Power: 29
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default Re: C++ system() not working!!?!? (Cygwin bash shell?)

MingW is a port of the GNU Compiler Collection (commonly known as GCC). It include stuff like GCC, G++, GDB, LD, etc. I already mentioned all this earlier in the thread.
__________________
05-03-2007 - 11-13-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 07-21-2008, 12:54 PM
marwex89's Avatar   
marwex89 marwex89 is offline
Guru
 
Join Date: Jul 2008
Location: Viking-land!
Posts: 3,995
Rep Power: 30
marwex89 is a jewel in the roughmarwex89 is a jewel in the roughmarwex89 is a jewel in the rough
Send a message via AIM to marwex89
Default Re: C++ system() not working!!?!? (Cygwin bash shell?)

Well, you mentioned it was a "port of the GNU compiler collection". What does that mean?

Not that I really need to know, probably, but whatever...

EDIT:
This is something I found after some googling (I didn't understand it before you guys explained to me what Cygwin actually was....):
"The "-mno-cygwin" flag to gcc makes gcc link against standard Microsoft DLLs instead of Cygwin.
This is desirable for native Windows programs that don't need a UNIX emulation layer."


It worked for me (adding -mno-cygwin (no space between) to the linker cmd line options), what do you think?

Here's a link -mno-cygwin -- Building Mingw executables using Cygwin
__________________

Last edited by marwex89; 07-21-2008 at 01:09 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 07-21-2008, 10:48 PM
dargueta dargueta is offline
Guru
 
Join Date: Oct 2007
Age: 18
Posts: 793
Last Blog:
Programs Under the Hoo...
Rep Power: 13
dargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the roughdargueta is a jewel in the rough
Default Re: C++ system() not working!!?!? (Cygwin bash shell?)

EDIT: Sorry, didn't see third page. Apologies for restating what has already been said.

I think it's like some sort of shell or something that kind of runs on top of your operating system, sort of like a VM...? It's redirecting your system() calls to an intepreter other than cmd.exe, so that's why you need to call it explicitly.

That's my theory, anyway.

Last edited by dargueta; 07-21-2008 at 10:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #26 (permalink)  
Old 07-22-2008, 02:42 AM
v0id's Avatar   
v0id v0id is offline
Retired
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,651
Last Blog:
CherryPy(thon)
Rep Power: 29
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default Re: C++ system() not working!!?!? (Cygwin bash shell?)

Quote:
Originally Posted by marvex89
Well, you mentioned it was a "port of the GNU compiler collection". What does that mean?
The GNU Compiler Collection is a set of programming-tools. I think we've got this thing right. It was originally made for Unix-system and that it is "ported" to Windows (through MingW, and too some degree, also Cygwin) means that the executables has been rewritten to work on Windows.

I still think that you should get rid off Cygwin, and use MingW instead. Then you don't have to play around with flags, like -mno-cygwin. Using MingW it will just work right away.
__________________
05-03-2007 - 11-13-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 07-22-2008, 06:25 AM
marwex89's Avatar   
marwex89 marwex89 is offline
Guru
 
Join Date: Jul 2008
Location: Viking-land!
Posts: 3,995
Rep Power: 30
marwex89 is a jewel in the roughmarwex89 is a jewel in the roughmarwex89 is a jewel in the rough
Send a message via AIM to marwex89
Default Re: C++ system() not working!!?!? (Cygwin bash shell?)

Yeah, I'll check that out. It shouldn't be too hard to make it work with NetBeans.

Thx for your help, guys!
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash Shell, using wget and awk? TIGA General Programming 0 04-11-2008 07:31 PM
[Pascal in Delphi]System to system Krad Pascal/Delphi 5 12-27-2007 02:35 PM
[PHP] Faking Shell Access Through PHP pranky PHP Tutorials 2 03-29-2007 07:28 AM


All times are GMT -5. The time now is 09:54 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads