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

C:\wxWidgets-2.8.10\lib: No such file: Permission denied

Started by kingfinn, June 27, 2009, 10:29:25 AM

Previous topic - Next topic

kingfinn

Hi all,

when I compiler I got the following Error:
QuoteC:\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






dje

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

cgarcia109

#2
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)


dje

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

kingfinn

the variable you can see above.
i did in the wizard --> release only. no dll, monolithic

stahta01

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Biplab

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.
Be a part of the solution, not a part of the problem.

cgarcia109

#8
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.

kingfinn

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