User forums > Using Code::Blocks

Adding files to project

<< < (4/5) > >>

MannyMoe:
Hi stahta01:

     I tried to copy the build log but codeblocks had the copy greyed out.

     Here is the codeblocks project file:


--- Code: ---<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="yyy" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Release">
<Option output="/home/scott/allegro5/Image/show_imagex" prefix_auto="1" extension_auto="1" />
<Option working_dir="/home/scott/allegro/Image/" />
<Option object_output="/home/scott/allegro5/Image/yyy" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add directory="/usr/include/allegro5/Image" />
</Compiler>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add directory="/usr/include/allegro5/Image" />
</Compiler>
<Linker>
<Add library="/usr/lib/i386-linux-gnu/liballegro.so" />
<Add library="/usr/lib/i386-linux-gnu/liballegro_image.so" />
<Add library="/usr/lib/i386-linux-gnu/liballegro_primitives.so" />
</Linker>
<Unit filename="../rubiks_cube_orange.bmp" />
<Unit filename="../show_image.c">
<Option compilerVar="CC" />
</Unit>
<Extensions>
<envvars />
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>


--- End code ---

Hope this helps! Thanks for our time.

stahta01:
Use relative paths for your images in both the CB package and in your code.
Set the working path to where your executable is located. I would also put the images in the same folder as the executable or in a sub-folder.
Note: The above directions are valid for an Windows program with your issue; they may or may not be valid for an Linux program.

Tim S.

stahta01:

--- Quote from: MannyMoe on January 04, 2019, 03:33:47 pm ---Hi stahta01:

     I tried to copy the build log but codeblocks had the copy greyed out.


--- End quote ---

You likely tried to copy the "Build Messages" instead try to copy the "build log" next time.

Tim S.

MannyMoe:
Hi stahta01:

     No, I tried to copy the Build Log. I tried again and it is still greyed out as before.
You mentioned earlier about using GCC from the command line. If you have the time
could you post what that would look like? Maybe their is enough info from the project
file to come up with something. I would like to try it to see what difference, if any, it
would make. Also, do you think there is some PATH that needs to be corrected to solve
my problem? Thanks!

stahta01:

--- Quote from: MannyMoe on January 04, 2019, 08:51:27 pm ---Hi stahta01:

     No, I tried to copy the Build Log. I tried again and it is still greyed out as before.
You mentioned earlier about using GCC from the command line. If you have the time
could you post what that would look like? Maybe their is enough info from the project
file to come up with something. I would like to try it to see what difference, if any, it
would make. Also, do you think there is some PATH that needs to be corrected to solve
my problem? Thanks!

--- End quote ---

I can not help you.
I think the problem is likely in your code; therefore this site rules says it is off topic.
http://forums.codeblocks.org/index.php/topic,9996.0.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version