Code::Blocks Forums
User forums => Help => Topic started by: kingfinn on June 27, 2009, 10:29:25 am
-
Hi all,
when I compiler I got the following Error:
C:\wxWidgets-2.8.10\lib: No such file: Permission denied
What could be the Issue and Howto fix it ?
Cheers,
kingfinn
Some more Infos:
Windows
Build: release, monolithic
(http://kingfinn.net/Unbenannt-1.jpg)
(http://kingfinn.net/Unbenannt-2.jpg)
(http://kingfinn.net/Unbenannt-3.jpg)
(http://kingfinn.net/Unbenannt-4.jpg)
-
Hello !
You give directories on the Linker settings whereas it should be libraries.
Search directories/Linker is the good place for C:\wxWidgets-2.8.10\lib
Dje
-
For wx is enough you to define base value
then you can use that instead of full path
wx base --> C:\wxWidgets-2.8.10 [$(#wx)=C:\wxWidgets-2.8.10]
Search Directories -> Compiler (include dirs)
Any configuration:
$(#wx)/include
$(#wx)/contrib/include
Release:
$(#wx)/lib/gcc_lib/msw
Debug:
$(#wx)/lib/gcc_lib/mswd
Search Directories -> Linker (lib dirs)
Any configuration:
$(#wx)\lib\gcc_lib
contrib folders if you need them
i usually generate contribs in same output folder as wxWidgets so i only use that line up
Search Directories -> Resource Compiler
Release:
$(#wx)/lib/gcc_lib/msw
Debug:
$(#wx)/lib/gcc_lib/mswd
Linker settings -> Link Libraries (here you specify library files to link against)
wxmsw28.a
...
...
(note: you are specifying here folders that are being understood as libraries that theyre not of course)
(note 2: i think paths are correct for non-unicode mono static build. Anyway i use mono unicode dll<so review them)
-
UPDATE (http://kingfinn.net/update.jpg) :(
-
Did you check the file exists ?
What is the full path ?
What did you put for the wx variable ?
There are often variables that tells if the lib is debug, unicode...
Did you try the wizard to generate your project?
Dje
-
the variable you can see above.
i did in the wizard --> release only. no dll, monolithic
-
Did you compile wxWidgets?
Or download an an already Compiled version? If yes, from where did you download it? (example wxpack)
I suggest turning on Full Compiler logging Mode.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
Tim S
-
1) You need to specify full import library name if you add .a extension to library name. So you need to add libwxmsw28.a
2) If you add these include directories, library directories and libraries to Compiler > Search directories, Code::Blocks will use them for all projects irrespective of project settings. So it's better you use them under project settings.
-
yes, you must specify full name
libwxmsw28.a
or not .a
wxmsw28
if you use .a the library name wont be auto completed (lib)wxmws28(.a)
This is about gcc compiler, the compiler option would be -lwxmsw28.a, so gcc understand thats the absolute name and search that file.
I think is better to use full names to avoid mistakes.
-
haha it works for me now :lol:
ich you compile rigth and choose the right options in the project dialog then,youhave to change nothing :P
cheers