Author Topic: It seems that this project has not been built yet...  (Read 15905 times)

Noimpe

  • Guest
It seems that this project has not been built yet...
« on: May 18, 2006, 06:04:54 pm »
Hi!

I succefully installed Code::Blocks on my Suse 10.1 OS. Now I want to compile a simple console application. Building succeeds but when i want to run the application, it asks me "It seems that this project has not been built yet. Do you want to build it now?". If I click "Yes", it builds again and doesn't do anything after having done that. If I click "No" a console opens and writes that it cannot find the directory. Cleaning doesn't help.
My compiler is configured as G++. My workspace is in a subdirectory of my user's directory.

Can you help me?

PS: Excuse me for my bad english  :D

sethjackson

  • Guest
Re: It seems that this project has not been built yet...
« Reply #1 on: May 18, 2006, 07:05:36 pm »
Hi!

I succefully installed Code::Blocks on my Suse 10.1 OS. Now I want to compile a simple console application. Building succeeds but when i want to run the application, it asks me "It seems that this project has not been built yet. Do you want to build it now?". If I click "Yes", it builds again and doesn't do anything after having done that. If I click "No" a console opens and writes that it cannot find the directory. Cleaning doesn't help.
My compiler is configured as G++. My workspace is in a subdirectory of my user's directory.

Can you help me?

PS: Excuse me for my bad english  :D

Hmm what is the C::B revision number? Could you post the project file? The project file is XML just open with Kate/Gedit(Vi anyone?/Whatever text editor you have), and post the XML to the forum......

As for your English it is very good. :D

Noimpe

  • Guest
Re: It seems that this project has not been built yet...
« Reply #2 on: May 20, 2006, 12:45:06 pm »
Thanks for your response.

My project file "console.cbp" contains the following stuff
Code
<?xml version="1.0"?>
<!DOCTYPE CodeBlocks_project_file>
<CodeBlocks_project_file>
<FileVersion major="1" minor="1"/>
<Project>
<Option title="Console application"/>
<Option makefile="Makefile"/>
<Build>
<Target title="default">
<Option type="1"/>
<Option parameters=""/>
<Option includeInTargetAll="1"/>
<Option projectCompilerOptionsRelation="3"/>
<Option projectLinkerOptionsRelation="3"/>
<Option projectIncludeDirsRelation="3"/>
<Option projectLibDirsRelation="3"/>
<Compiler>
<Add option=""/>
</Compiler>
<Linker>
<Add option=""/>
</Linker>
</Target>
</Build>
</Project>
</CodeBlocks_project_file>


The build log contains that:
Code
Project   : Console application
Compiler  : GNU GCC Compiler (called directly)
Directory : /home/christian/workspace/
--------------------------------------------------------------------------------
Switching to target: default
Linking console executable: /home/christian/workspace/console
g++: no input files
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
hmm no input files?

sethjackson

  • Guest
Re: It seems that this project has not been built yet...
« Reply #3 on: May 20, 2006, 02:33:05 pm »
Yeah look at the XML closely. Right between

Code: xml
<Compiler>
<Add option=""/>
</Compiler>

There are no files there (which is why G++ is telling you this).

So just add some files to your project, and you are all set. :D

Oh BTW are you using RC2? I would compile from SVN trunk or get a nightly from here (I think SuSE supports RPM's been awhile since I used that distro).

http://forums.codeblocks.org/index.php?board=20.0
« Last Edit: May 20, 2006, 02:34:37 pm by sethjackson »

Noimpe

  • Guest
Re: It seems that this project has not been built yet...
« Reply #4 on: May 20, 2006, 04:00:12 pm »
Oh, please excuse my stupidness  :)

I'm using an RC2. Why would you recommend an nightly build? Which are the advantages?

sethjackson

  • Guest
Re: It seems that this project has not been built yet...
« Reply #5 on: May 20, 2006, 04:19:26 pm »
Oh, please excuse my stupidness  :)

I'm using an RC2. Why would you recommend an nightly build? Which are the advantages?

Hey everyone overlooks something every now and then......

I would reccomend a nightly because tons of bugs have been fixed, and alot of new (read cool) features have been added. :D

Anyways did you solve the problem?

Noimpe

  • Guest
Re: It seems that this project has not been built yet...
« Reply #6 on: May 20, 2006, 06:03:36 pm »
Yes i solved it. I'll try a nightly build.

sethjackson

  • Guest
Re: It seems that this project has not been built yet...
« Reply #7 on: May 20, 2006, 09:58:57 pm »
Yes i solved it. I'll try a nightly build.

Ok. You will like the nightlies. :D