Author Topic: No such File: Permissions Denied  (Read 5874 times)

Offline StaticShell

  • Single posting newcomer
  • *
  • Posts: 5
No such File: Permissions Denied
« on: July 29, 2009, 04:22:39 pm »
Hello,

I was hoping someone could shed some light on my issue, I know there are many posts with the same title as mine although my situation is different.

Im using windows "in work!" and I have a huge (C/C++)project at hand, problem is when I compile it im getting the following error::


-----------------------------------------------------
Linking executable: wxSaver.exe
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: ..\wxWFDBWrapper: No such file: Permission denied
-----------------------------------------------------

Many other posts simply fix the permissions denied with a linux permission code, although Im not in linux and the folder/files of this project I have full access, so I cant understand where im getting this error from.



thank you in advance  :P

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: No such File: Permissions Denied
« Reply #1 on: July 29, 2009, 04:26:38 pm »
thank you in advance  :P
Post the full compiler command log (see my sig).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline StaticShell

  • Single posting newcomer
  • *
  • Posts: 5
Re: No such File: Permissions Denied
« Reply #2 on: July 29, 2009, 04:36:03 pm »
Sorry about that, here it is::

mingw32-g++.exe -LC:\wxWidgets-2.8.10\buildwin32\lib -LC:\wxWidgets-2.8.10\buildwin32\lib\wx\include\msw-ansi-release-static-2.8  -o wxSaver.exe .objs\wxCore\AUWrite.o .objs\wxCore\FATController.o .objs\wxCore\Incident.o .objs\wxCore\IncidentItem.o .objs\wxCore\PADController.o .objs\wxCore\RTCDate.o .objs\wxCore\SamEvent.o .objs\wxCore\SamEventCode.o .objs\wxCore\SamEventConfig.o .objs\wxCore\SectorEvent.o .objs\wxGuiBlocks\FSTCanvas.o .objs\wxGuiBlocks\LTPrefsDialog.o .objs\wxGuiBlocks\LocationsDialog.o .objs\wxGuiBlocks\MyStaticBitmap.o .objs\wxHardwareIO\HSTPAD.o .objs\wxHardwareIO\HSTSPP.o .objs\wxHardwareIO\HSTUSB.o .objs\wxHardwareIO\SamBatIO.o .objs\wxHardwareIO\cy63723_libusb.o .objs\AEDConfigDlg.o .objs\BPFilter.o .objs\BatteryConfig.o .objs\IncidentCacheReader.o .objs\IncidentImporterExporter.o .objs\LPFilter.o .objs\NewRecordDlg.o .objs\PADSettingsDlg.o .objs\PasswordDlg.o .objs\PasswordProtectionDlg.o .objs\Prefs.o .objs\SampleRateConverter.o .objs\SaveDlg.o .objs\TimeDlg.o .objs\TimeFormatter.o .objs\TraceDlg.o .objs\TracePrintout.o .objs\wxSaverApp.o .objs\wxSaverMainFrm.o .objs\wxUtility\md5.o .objs\wxWFDBWrapper\WFDBWrapper.o .objs\wxWFDBWrapper\annot.o .objs\wxWFDBWrapper\calib.o .objs\wxWFDBWrapper\signal.o .objs\wxWFDBWrapper\wfdbinit.o .objs\wxWFDBWrapper\wfdbio.o  .objs\wxSaverApp.res .objs\wxSaver_private.res  ..\wxHardwareIO\libinpout32.a ..\wxHardwareIO\FTD2XX.a ..\wxHardwareIO\libusb.a -mwindows -lwx_msw-2.8 -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lwxzlib-2.8 -lwxregex-2.8 -lwxexpat-2.8 -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32  ..\wxWFDBWrapper  -mwindows
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: ..\wxWFDBWrapper: No such file: Permission denied
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: No such File: Permissions Denied
« Reply #3 on: July 29, 2009, 04:46:55 pm »
[...]
.objs\wxWFDBWrapper\wfdbinit.o
[...]
..\wxHardwareIO\FTD2XX.a
[...]
-lwx_msw-2.8
[...]
..\wxWFDBWrapper
[...]
What exactly shall that be? The linker tries to link against that file. However - why does that file "wxWFDBWrapper" have no extension??? What is it??? it's handled like an object file without an extension. Is it probably a mistyped linker option or even a library file (probably even missing the "-l" in front)???

Can you ensure that you have write permissions to the file?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline StaticShell

  • Single posting newcomer
  • *
  • Posts: 5
Re: No such File: Permissions Denied
« Reply #4 on: July 29, 2009, 05:10:19 pm »
Thank you very much MortenMacFly!!!!  :D    :D    :D

I noticed that wrapper object was manually set in the code::blocks "Link Libraries" by someone *cough*.

I completley overlooked that, your help is very much appreciated, now onto the testing  :shock: