New Posts  All Forums:Forum Nav:

C compiler help

post #1 of 6
Thread Starter 
Hi


Ok first I am a noob at programming. Whenever I make a C program and compile it it opens and then it goes and nothing happened. This appens even with manydemo programs so its not just me
Oh The Glorrryyy
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 630 MSI THANG 2x4830 8gb Gskill Ripjaws 
Hard DriveMonitorPowerCase
2x250gb 1x100gb 1x20gb 1920x1080 23in  500watt Rosewill Open Air 
  hide details  
Reply
Oh The Glorrryyy
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 630 MSI THANG 2x4830 8gb Gskill Ripjaws 
Hard DriveMonitorPowerCase
2x250gb 1x100gb 1x20gb 1920x1080 23in  500watt Rosewill Open Air 
  hide details  
Reply
post #2 of 6
If your going to be developing in C then I would suggest getting yourself something setup like ubuntu. Linux machines come with a ton of features for compiling C and C++. Visual Studio is nice however I couldn't imagine using C without some flavor of *nix.

I particularly am inlcinded to FreeBSD due to the BSD liscence. I'd suggest ubuntu for someone who hasn't used Linux before. Very simple install process and you will have g++ to compile native to the system.

If however you don't want to take that route. You can find a free C compilers here http://www.thefreecountry.com/compilers/cpp.shtml
GAMR
(15 items)
 
  
CPUMotherboardGraphicsGraphics
6600K ASUS Z170-A ASUS 970 Strix ASUS 970 Strix 
RAMHard DriveHard DriveHard Drive
Crucial Ballistix Elite Samsung 850 EVO Intel 320 6400AAKS 
Hard DriveCoolingMonitorPower
6400AAKS Cooler Master Hyper 212 EVO ASUS VG24QE EVGA SuperNova 650 G2 
CaseMouseMouse Pad
Antec 1200 Razer Abyssus 3.5G QCK+ 
  hide details  
Reply
GAMR
(15 items)
 
  
CPUMotherboardGraphicsGraphics
6600K ASUS Z170-A ASUS 970 Strix ASUS 970 Strix 
RAMHard DriveHard DriveHard Drive
Crucial Ballistix Elite Samsung 850 EVO Intel 320 6400AAKS 
Hard DriveCoolingMonitorPower
6400AAKS Cooler Master Hyper 212 EVO ASUS VG24QE EVGA SuperNova 650 G2 
CaseMouseMouse Pad
Antec 1200 Razer Abyssus 3.5G QCK+ 
  hide details  
Reply
post #3 of 6
What IDE are you currently using? My guess would be DevShed. I suggest, right before your return in main() to put the line

Code:
system("pause");
This will freeze the system with your output window still in tact. Or you could route your output to an output file. Plenty of Docs on that.

And why are you coding in C? Thats sooo 10 years ago
It's about time!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @3.3Ghz Gigabyte EP45-UD3P Sapphire 2900Pro Flashed to XT 4Gb Gskill 1066Mhz PK's 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320Gb & WD Black 640Gb Lite On Vista Business and VMWare Ubuntu Acer AL2223W 22" 
KeyboardPowerCaseMouse
Ergonomic 4000 Corsair HX 620W CM 690 G5 
  hide details  
Reply
It's about time!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @3.3Ghz Gigabyte EP45-UD3P Sapphire 2900Pro Flashed to XT 4Gb Gskill 1066Mhz PK's 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320Gb & WD Black 640Gb Lite On Vista Business and VMWare Ubuntu Acer AL2223W 22" 
KeyboardPowerCaseMouse
Ergonomic 4000 Corsair HX 620W CM 690 G5 
  hide details  
Reply
post #4 of 6
Quote:
Originally Posted by decompiled View Post
If your going to be developing in C then I would suggest getting yourself something setup like ubuntu. Linux machines come with a ton of features for compiling C and C++. Visual Studio is nice however I couldn't imagine using C without some flavor of *nix.

I particularly am inlcinded to FreeBSD due to the BSD liscence. I'd suggest ubuntu for someone who hasn't used Linux before. Very simple install process and you will have g++ to compile native to the system.

If however you don't want to take that route. You can find a free C compilers here http://www.thefreecountry.com/compilers/cpp.shtml
I understand why you suggest linux, I think we all know linux is god for programming in many cases, but I think he's just writing a basic C program and is having trouble with his compiler in his IDE. I don't think he needs to get all set up with a *nix environment to do what he's trying to do. In the long run however, a linux setup would be great for programming
It's about time!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @3.3Ghz Gigabyte EP45-UD3P Sapphire 2900Pro Flashed to XT 4Gb Gskill 1066Mhz PK's 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320Gb & WD Black 640Gb Lite On Vista Business and VMWare Ubuntu Acer AL2223W 22" 
KeyboardPowerCaseMouse
Ergonomic 4000 Corsair HX 620W CM 690 G5 
  hide details  
Reply
It's about time!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 @3.3Ghz Gigabyte EP45-UD3P Sapphire 2900Pro Flashed to XT 4Gb Gskill 1066Mhz PK's 
Hard DriveOptical DriveOSMonitor
Seagate Barracuda 320Gb & WD Black 640Gb Lite On Vista Business and VMWare Ubuntu Acer AL2223W 22" 
KeyboardPowerCaseMouse
Ergonomic 4000 Corsair HX 620W CM 690 G5 
  hide details  
Reply
post #5 of 6
Ya, you need to add the "system("PAUSE");" line at the end. Other wise it will close the window after the program runs.
post #6 of 6
Thread Starter 
I have linux (not istalled yet). Also my c bok was written for the PDP 11 and is from 1976 so its not really explained


REP +
Oh The Glorrryyy
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 630 MSI THANG 2x4830 8gb Gskill Ripjaws 
Hard DriveMonitorPowerCase
2x250gb 1x100gb 1x20gb 1920x1080 23in  500watt Rosewill Open Air 
  hide details  
Reply
Oh The Glorrryyy
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD 630 MSI THANG 2x4830 8gb Gskill Ripjaws 
Hard DriveMonitorPowerCase
2x250gb 1x100gb 1x20gb 1920x1080 23in  500watt Rosewill Open Air 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming