Code::Blocks Forums

User forums => Help => Topic started by: wolfcry on March 27, 2010, 02:04:37 pm

Title: Unable to find / create exe file?
Post by: wolfcry on March 27, 2010, 02:04:37 pm
First off I'm gonna pull a veltins (http://forums.codeblocks.org/index.php/topic,12225.0.html) and start off by saying:

Hey!

I start by choosing console application....  lol, just kidding  :D

Actually, I have three questions so I'll try my best to explain the issues. I searched the site and read the wiki's but cannot find what I'm looking for or atleast haven't found it yet. So far, I'm absolutely loving C::B. You guys did an awesome job.

QUESTIONS:
1. When I create a new project, (console application), everything works as it should but when ever I build and run the source, I can never locate an .exe file. I'm looking in the project's folder but cannot find it. Am I missing something? Where is the exe file? I'm able to build an exe file if instead of creating a new project, I create a new 'empty file' instead.

2. If I open up an existing source file (C++), or paste source into an already open C++ file, the file somehow converts to C and saves as a C source file and not C++ even though when creating the new file / project, I have C++ selected during the wizard process. Also, C::B frequently "locks" my open files (I notice an asterik on the tab by the file name) and I keep getting prompted about reloading the old file which of course I don't want to do so I have to keep hitting CTRL + S to 'unlock' the file.

3. How do I remove the "hello world" syntax when a new project is created and the main source is opened?

Thanks for all your help.
C::B INFO:
Version: 8.02
Compiler: GNU GCC (recently installed but working efficiently)
OS: Windows XP
Title: Re: Unable to find / create exe file?
Post by: stahta01 on March 27, 2010, 03:18:16 pm
Did you Look in ../bin/release and ../bin/debug ?

Turn on full compiler logging and you should be able to see where it was placed.

You can also see where it should go under
Project -> Properties
Tab "Build Target"
Box "Output Filename"


Tim S.
Title: Re: Unable to find / create exe file?
Post by: wolfcry on March 27, 2010, 06:54:16 pm
Thank you Tim, I found the exe file. It was in debug.

Does anyone have any ideas regarding questions 2 and 3?

Thank you.
Title: Re: Unable to find / create exe file?
Post by: stahta01 on March 28, 2010, 12:35:23 am
Question 2:
Verify the file extension is .c for c files and .cpp for c++ files.
No idea what else can be problem.

Tim S.
Title: Re: Unable to find / create exe file?
Post by: Warren_W_W on October 21, 2020, 06:17:55 am
No exe file, but found it. I ran it as  Admin and just a flash on the screen, any idea no shell opened? I found: My program runs in codeblocks but if i start it from the outside it only flashes and closes immediately. on "http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)". fix was://clear buffer, wait for input to close program std::cin.clear(); std::cin.ignore(INT_MAX, '\n'); std::cin.get(); return 0;, build gives me: error:" 'INT_MAX' was not declared in this scope". When I type (INT_) there are no MAX choices just int_fast or int_least.
Title: Re: Unable to find / create exe file?
Post by: BlueHazzard on October 21, 2020, 11:04:46 am
You have to add the line
Code
#include <climits>
at the beginning of your code.

Google is your friend
Title: Re: Unable to find / create exe file?
Post by: Warren_W_W on October 21, 2020, 07:41:20 pm
Solved.
Title: Re: Unable to find / create exe file?
Post by: andrewmacmillan on October 22, 2020, 07:25:59 am
how it's solved?