Author Topic: Unable to find / create exe file?  (Read 25066 times)

Offline wolfcry

  • Multiple posting newcomer
  • *
  • Posts: 30
Unable to find / create exe file?
« on: March 27, 2010, 02:04:37 pm »
First off I'm gonna pull a veltins 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
« Last Edit: March 27, 2010, 02:07:26 pm by wolfcry »
C::B Version = 10.5
OS = Microsquish XP

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Unable to find / create exe file?
« Reply #1 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline wolfcry

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: Unable to find / create exe file?
« Reply #2 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.
C::B Version = 10.5
OS = Microsquish XP

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Unable to find / create exe file?
« Reply #3 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Warren_W_W

  • Single posting newcomer
  • *
  • Posts: 9
Re: Unable to find / create exe file?
« Reply #4 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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Unable to find / create exe file?
« Reply #5 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

Offline Warren_W_W

  • Single posting newcomer
  • *
  • Posts: 9
Re: Unable to find / create exe file?
« Reply #6 on: October 21, 2020, 07:41:20 pm »
Solved.

andrewmacmillan

  • Guest
Re: Unable to find / create exe file?
« Reply #7 on: October 22, 2020, 07:25:59 am »
how it's solved?