• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Compiler problem in Visual C++

Joined
Dec 2, 2009
Messages
3,353 (0.59/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!
 
the express version of visual studio does not come with the windows platform SDK, need to manually download it.
 
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.
 
Lol I put that for fun, that has nothing to do with the question :)
It is just a funny signature!
 
Oh ... rolf
I just saw code and my natural instinct was to debug it. :laugh:
 
Last edited:
If the program is very simple try compiling it with the Visual Studio Command Prompt.

Something like:
Code:
cl /EHsc helloworld.cpp
 
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
 
Back
Top