User forums > Using Code::Blocks

Linux CodeBlocks & wxWidgets 2.6

<< < (2/3) > >>

grv575:
Great thanks!  :)

grv575:
Actually, just tested this.  It generates the project name correctly, but isn't naming the main.cpp file correctly or adding it to the console.cbp file:


--- Code: ---<?xml version="1.0"?>
<!DOCTYPE Code::Blocks_project_file>
<Code::Blocks_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>
</Code::Blocks_project_file>

--- End code ---

vs:


--- Code: ---<?xml version="1.0"?>
<!DOCTYPE Code::Blocks_project_file>
<Code::Blocks_project_file>
<FileVersion major="1" minor="1"/>
<Project>
<Option title="Console application"/>
<Option makefile="Makefile"/>
<Option makefile_is_custom="0"/>
<Option compiler="0"/>
<Build>
<Target title="default">
<Option output="/root/test3/console"/>
<Option working_dir="."/>
<Option object_output=".objs"/>
<Option deps_output=".deps"/>
<Option external_deps=""/>
<Option type="1"/>
<Option compiler="0"/>
<Option projectResourceIncludeDirsRelation="1"/>
</Target>
</Build>
<Unit filename="main.cpp">
<Option compilerVar="CPP"/>
<Option target="default"/>
</Unit>
</Project>
</Code::Blocks_project_file>

--- End code ---



[attachment deleted by admin]

rickg22:
Cool! :) So, is the makefile fixed now?

mandrav:

--- Quote from: grv575 on September 02, 2005, 08:41:34 am ---I compiled the windows version without the -fno-pcc-struct-return CFLAGS flag.  Tested and it works perfectly.  I propose we just get rid of the flag unless there is some specific reason for having it.  The resulting binary seems to run slightly faster (my imagination?) - maybe better optimized but the main thing is that it should be more stable to use the same set of flags on both platforms when diagnosing bug reports.

--- End quote ---

Yes, we can get rid of -fno-pcc-struct-return.
As for feeling faster, I bet the new thread pool did its magic ;)

grv575:
More on the bug above:

The .cbp file is not the issue.   Both windows and Linux versions generate the same. cbp file and then save it with the <Units> tags once the project is closed.   So actually closing the project and then reopening it on Linux works ok.   You only get the blank filename for the Cpp source file when you first create the project (Linux version).  The message:
"End parsing project Console application (no files found?)"
appears on both Windows and Linux but only the windows version picks up the main.cpp filename :?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version