• 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,351 (0.64/day)
System Name Dark Stealth
Processor Ryzen 5 5600x
Motherboard Gigabyte B450M Gaming rev 1.0
Cooling Snowman, arctic p12 x2 fans
Memory 16x2 DDR4 Corsair Dominator Pro
Video Card(s) 3080 10gb
Storage 2TB NVME PCIE 4.0 Crucial P3 Plus, 1TB Crucial MX500 SSD, 4TB WD RED HDD
Display(s) HP Omen 34c (34" monitor 3440x1440 165Hz VA panel)
Case Zalman S2
Power Supply Corsair 750TX
Mouse Logitech pro superlight, mx mouse s3, Razer Basiliskx with battery
Keyboard Custom mechanical keyboard tm680
Software Windows 11
Benchmark Scores 70-80 fps 3440x1440 on cyberpunk 2077 max settings
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.08/day)
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 (2.20/day)
Location
Cheeseland (Wisconsin, USA)
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,351 (0.64/day)
System Name Dark Stealth
Processor Ryzen 5 5600x
Motherboard Gigabyte B450M Gaming rev 1.0
Cooling Snowman, arctic p12 x2 fans
Memory 16x2 DDR4 Corsair Dominator Pro
Video Card(s) 3080 10gb
Storage 2TB NVME PCIE 4.0 Crucial P3 Plus, 1TB Crucial MX500 SSD, 4TB WD RED HDD
Display(s) HP Omen 34c (34" monitor 3440x1440 165Hz VA panel)
Case Zalman S2
Power Supply Corsair 750TX
Mouse Logitech pro superlight, mx mouse s3, Razer Basiliskx with battery
Keyboard Custom mechanical keyboard tm680
Software Windows 11
Benchmark Scores 70-80 fps 3440x1440 on cyberpunk 2077 max settings
Lol I put that for fun, that has nothing to do with the question :)
It is just a funny signature!
 

Kreij

Senior Monkey Moderator
Joined
Feb 6, 2007
Messages
13,817 (2.20/day)
Location
Cheeseland (Wisconsin, USA)
Oh ... rolf
I just saw code and my natural instinct was to debug it. :laugh:
 
Last edited:

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
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.08/day)
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
 
Top