Author Topic: Trouble building code in codeblocks-EP  (Read 3374 times)

Offline potential

  • Single posting newcomer
  • *
  • Posts: 2
Trouble building code in codeblocks-EP
« on: December 19, 2014, 05:21:44 pm »
Hello!

"it seems that this project has not been built yet. do you want to build it now?"

this pops up everytime I try to build a new code in my just downloaded codeblocks-EP. If I click yes it will pop up again, If I click no it terminates without executing

Hope you can help me.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2773
Re: Trouble building code in codeblocks-EP
« Reply #1 on: December 19, 2014, 06:04:20 pm »
Make sure you have a compiler installed. Search the forum for "it seems that this project has not been built yet" from the base of the forum.

Lots of answers.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Trouble building code in codeblocks-EP
« Reply #2 on: December 19, 2014, 06:04:55 pm »
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Since you are new make sure you read the FAQs and the rules http://forums.codeblocks.org/index.php/topic,9996.0.html

In order to get help, you need to post a full rebuild log.

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 stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Trouble building code in codeblocks-EP
« Reply #3 on: December 21, 2014, 05:57:36 am »
Make sure you have a compiler installed.

In additional to making sure you have a compiler installed.
Make sure Code::Blocks toolchain settings are correct to use the installed compiler (best to set this CB compiler as the default CB compiler).
And, make sure your normal project is using the correct CB compiler.

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 stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
CB Troubleshooting message "it seems that this project has not been built yet"
« Reply #4 on: December 23, 2014, 06:05:54 pm »
I just had this exact problem on Windows (when using a CB project created for Linux via CMake or Premake)

Message "it seems that this project has not been built yet"

1. Rebuild Project without the run option.
Build -> Rebuild (Control-F11)

2. Run the program
Build -> Run (Control-F10)
Click "No" on do you want to build it now.

Post the line from the "Build Log" that starts with "Checking for existence:"

The line when I had this problem on Windows

Code
Checking for existence: E:\OpenSourceCode\Libs\GUI\wxWidgets\wxCode\wxsqlite3\bin\dll\release\minimal

Notice there is NOT an file extension after the "minimal" this is what caused the problem in my case.

Solution: Edit the project
Project -> Properties..
Tab: Build Targets
Verify this option is checked "Auto-generatate filename extension" for all the targets that can be ran.

Note, I seemed to have to save,close and reopen the project to get the problem to go away.

Tim S.
« Last Edit: December 23, 2014, 06:11:12 pm by stahta01 »
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