User forums > Help

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

(1/2) > >>

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

--- End quote ---

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

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


--- End code ---

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

--- End code ---
hmm no input files?

sethjackson:
Yeah look at the XML closely. Right between


--- Code: (xml) ---<Compiler>
<Add option=""/>
</Compiler>

--- End code ---

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

Noimpe:
Oh, please excuse my stupidness  :)

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

Navigation

[0] Message Index

[#] Next page

Go to full version