User forums > Help

help with error.

<< < (2/4) > >>

MortenMacFly:

--- Quote from: anti on March 09, 2010, 01:37:45 am ---does anyone know how i make it so code blocks can find lfltk from just having lfltk in the linker settings tab like he did, with the location being  C:\face\FaceRec\fltk-1.3.x-r7216\lib???

--- End quote ---
As this makes no sense at all: No.
Since the beginning of compilers / linkers you simply need to define where to find resources. If you want to change that - go ahead and grab yourself the sources of GCC and do it yourself. Surely a patch in that direction will be objected by the GCC team.

However, you can use the concept of global variables if you want to have the folder dynamically adjusted once you open th project on another login / computer / platform. Consult the C::B documentation accordingly.

anti:

--- Quote from: MortenMacFly on March 09, 2010, 06:41:53 am ---
--- Quote from: anti on March 09, 2010, 01:37:45 am ---does anyone know how i make it so code blocks can find lfltk from just having lfltk in the linker settings tab like he did, with the location being  C:\face\FaceRec\fltk-1.3.x-r7216\lib???

--- End quote ---
As this makes no sense at all: No.
Since the beginning of compilers / linkers you simply need to define where to find resources. If you want to change that - go ahead and grab yourself the sources of GCC and do it yourself. Surely a patch in that direction will be objected by the GCC team.

However, you can use the concept of global variables if you want to have the folder dynamically adjusted once you open th project on another login / computer / platform. Consult the C::B documentation accordingly.

--- End quote ---

is there a global variable for kernel32 library linking? because that works it's just lfltk that didn't, so maybe there's no defined global variable for it.

MortenMacFly:

--- Quote from: anti on March 09, 2010, 02:37:53 pm ---is there a global variable for kernel32 library linking?

--- End quote ---
Sorry, but I don't get what you want to ask. Are you aware what global variables are?!

anti:
if you don't know how to answer the question, or understand it, as you've previously said, that's fine, but try not to be patronising.

i'm interested in getting code blocks projects that link to fltk in project>build options>linker settings to work without being told the exact location.



ie in that box above that tells codeblocks when compiling, what libs to link, code blocks knows where gdi and kernel libs are, without links to the actual folder, a mere mention of the word "kernel32" is enough, but it doesn't know where lfltk is. How do i set this up.?

oBFusCATed:
Morten has given you the guide, you have not followed it and then he's guilty?  :shock:

http://lmgtfy.com/?q=codeblocks+global+variables

kernel32.dll is a system lib, fltk is user lib...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version