• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Compiler problem in Visual C++

Joined
Dec 2, 2009
Messages
3,257 (1.10/day)
Likes
315
System Name Mercury KM-81
Processor Phenom II x4 B50
Motherboard ASUS M4A89GTD PRO
Cooling Cooler Master Hyper TX3
Memory 6GB Ram (4GBx1 Corsair 2GBx1 Nanya)
Video Card(s) PowerColor AX6770 V2.0
Storage 2TB WD Black, 1TB Hitachi, 500 GB WD Blue
Display(s) Philips 247E-LPH 24" 1920x1080
Case Mercury
Audio Device(s) Integrated Realtek
Power Supply Corsair 750TX
Software Windows 7 64-bit
Benchmark Scores Maybe it is time to benchmark :D
#1
Hi guys!
I am trying to compile in microsoft visual c++ 2008 in a windows application,
but i cannot compile anything. It always says unable to start program,
the system cannot find the file specified
Pls help me!
 

ctrain

New Member
Joined
Jan 12, 2010
Messages
393 (0.13/day)
Likes
72
#2
the express version of visual studio does not come with the windows platform SDK, need to manually download it.
 

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (3.45/day)
Likes
5,524
Location
Cheeseland (Wisconsin, USA)
#3
Aleks;
I'm not sure, but I thinkthe way you are using the main method should end you up with a stack overflow. Eveytime main recursively calls itself it will push a pointer to itself onto the stack.

Probably be better to do something like
Code:
int main()
{
    universe = 0/0; // <- doesn't this throw a divide by zero exception?
    while (true)
    {
         // don't do anything
    }
}
It's also not good programming practice to not have a way to exit a loop cleanly.
Especially for debugging.
 
Joined
Dec 2, 2009
Messages
3,257 (1.10/day)
Likes
315
System Name Mercury KM-81
Processor Phenom II x4 B50
Motherboard ASUS M4A89GTD PRO
Cooling Cooler Master Hyper TX3
Memory 6GB Ram (4GBx1 Corsair 2GBx1 Nanya)
Video Card(s) PowerColor AX6770 V2.0
Storage 2TB WD Black, 1TB Hitachi, 500 GB WD Blue
Display(s) Philips 247E-LPH 24" 1920x1080
Case Mercury
Audio Device(s) Integrated Realtek
Power Supply Corsair 750TX
Software Windows 7 64-bit
Benchmark Scores Maybe it is time to benchmark :D
#4
Lol I put that for fun, that has nothing to do with the question :)
It is just a funny signature!
 
Joined
Jul 26, 2010
Messages
1,655 (0.61/day)
Likes
729
Location
Philly
System Name Primary Rig
Processor Phenom II X4 B50 @ 3.7GHz
Motherboard Biostar TA790GX 128M
Cooling Sunbeam CR-CCTF 120mm , 6x120mm, MOS-C1
Memory 2x2GB Kingston HyperX 1066 @ 800 4-4-4-12
Video Card(s) Sapphire HD 5830 800/1000 @ 885/1225
Storage 320GB, 400GB, 500GB, 1.5TB
Display(s) Hannspree HF259
Case CM 690
Power Supply OCZ 850W
Benchmark Scores 3Dmark06: 18545/5219 CPU Mark 7.0: 3911.2 Cinebench R10: 11826/3359 x264 HD 2.0: 75.6/23.9
#6
If the program is very simple try compiling it with the Visual Studio Command Prompt.

Something like:
Code:
cl /EHsc helloworld.cpp
 

ctrain

New Member
Joined
Jan 12, 2010
Messages
393 (0.13/day)
Likes
72
#7
Aleks;
I'm not sure, but I thinkthe way you are using the main method should end you up with a stack overflow. Eveytime main recursively calls itself it will push a pointer to itself onto the stack.
yup it will overflow, but recursive main() is illegal anyway