News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

It seems that this project has not been built yet...

Started by Noimpe, May 18, 2006, 06:04:54 PM

Previous topic - Next topic

Noimpe

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

Quote from: Noimpe 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

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

Thanks for your response.

My project file "console.cbp" contains the following stuff

<?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:

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

#3
Yeah look at the XML closely. Right between

Code (xml) Select

<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.next.codeblocks.org/index.php?board=20.0

Noimpe

Oh, please excuse my stupidness  :)

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

sethjackson

Quote from: Noimpe 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?

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


sethjackson