Author Topic: ar.exe: \;: No such file or directory  (Read 5673 times)

Offline walker

  • Multiple posting newcomer
  • *
  • Posts: 19
ar.exe: \;: No such file or directory
« on: November 20, 2006, 05:31:41 pm »
yes, I have read this post, still could not fix the problem
http://forums.codeblocks.org/index.php?topic=2218.0

when I try to built a static library, new nightly build, Winxp-pro
this is error output when I compile a static lib project (a simple static lib project auto-generated by cb)
-------------- Build: Debug in slib ---------------
Compiling: main.c
Linking static library: libslib.a
ar.exe: libslib.a: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

"no such file or directory", what does this mean? could not find ar.exe or the object files?

(1) the problem occurred after I manually delete all keys of code::blocks in registry table when I tried to have a clean new install.
also cleaned the confiugreation folder under the "document and setting\ ... " folder,   

(2)cannot repeat this problem in another machine, I compared the cbp files, exact the same,
I guess the problem is caused some setting saved in registry table. just wonder how to clean cb completely from the system,

(3) the following is a project file generate by creating a new static lib, don't know if something wrong here

(4) when I re-install the rc2, no such problem,
thanks

Code
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="5" />
<Project>
<Option title="slib" />
<Option pch_mode="2" />
<Option default_target="" />
<Option compiler="gcc" />
<Option virtualFolders="" />
<Build>
<Target title="Debug">
<Option output="libslib.a" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj\Debug\" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="libslib.a" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj\Release\" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="main.c">
<Option compilerVar="CC" />
<Option target="Debug" />
<Option target="Release" />
</Unit>
<Extensions />
</Project>
</CodeBlocks_project_file>

« Last Edit: November 20, 2006, 05:39:17 pm by walker »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5300
Re: ar.exe: \;: No such file or directory
« Reply #1 on: November 20, 2006, 05:37:44 pm »
seems you might still be using CB rc2 ? Uninstall it, clean the registry (CB entries), and install a nightly build, everything should be ok again.

Offline walker

  • Multiple posting newcomer
  • *
  • Posts: 19
Re: ar.exe: \;: No such file or directory
« Reply #2 on: November 20, 2006, 06:03:11 pm »
thanks for your reply,
I did the following clean-up, still ...

(1) run c:\program files\codeblocks\uninstall0000.exe  (from rc2) uninstall it
(2) delete the folder  C:\Documents and Settings\secondo\Application Data\codeblocks
(3) remove the registry entry:  hkey_current_user\software\codeblocks

(4) then in c:\program files\codeblocks\  folder, I unzipped the
wxmsw26u_gcc_cb_wx2.6.3p2.7z
CB_20061117_rev3230_win32.7z

(5) restart cb
en error msg:
can not enumerate files in the direcotry
c:\documents and setting\***\application data\codeblocks/share/codeblocks/plugins'
error 3: the system cannot find the path specified


ignore it

create a new static lib project, ctrl+F9

still the same error msg, no .a file created
-------------- Build: Debug in slib2 ---------------
Compiling: main.c
Linking static library: libslib2.a
ar.exe: libslib2.a: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


I missed something? or something wrong?

thanks
« Last Edit: November 20, 2006, 06:07:41 pm by walker »