News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

xfbuild (DMD) and import-paths in CB

Started by nrgyzer, January 09, 2011, 02:51:34 PM

Previous topic - Next topic

nrgyzer

Hey guys,

I installed CodeBlocks on linux and it works great with the default Digital Mars D Compiler settings. But... it seems that CodeBlocks always ignore my import paths. I changed the default dmd compiler executable to xfbuild (which includes and compiles all which have anything to do with the project), thus that imported projects/files or modules are automatically compiled.

When I add a directory like /home/user/Desktop/MyProjectToImport to the folder paths (in Settings > Compiler and debugger > Search directories > Compiler), CodeBlocks does not apply the path to the compiler. I always get a "undefined reference to"-error which means that the compiler can't find symbols which are defined in other (imported) projects. Does anyone know what I'm doing wrong?


Thanks in advance!

oBFusCATed

Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F'

p.s. you've posted to the wrong subforum, this one is for development of C::B, not for using C::B to develop your app...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

It's not enough to set the "import paths" to the other projects (libraries) to use, but you also need to link against the libraries that actually provide the symbols.

BTW: I am not sure what you mean by "import paths" btw. - I only know "include paths" fr the compiler / linker.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

In D import is something like include in C/CPP
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]