Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: crisogona2000 on September 16, 2019, 06:17:07 am

Title: File not recognized: File format not recognized
Post by: crisogona2000 on September 16, 2019, 06:17:07 am
I have followed the instruction on the web "Build Option>link target> Add". to add the .so file to codeblock.
but when I build the program, an error is occured. one point I will said that the .so file do not has any problem.

-------------- Build: Debug in Trading ---------------

Linking console executable: bin\Debug\Trading.exe
..\LinuxExample\apitester\lib\libapiwrapper.so: file not recognized: File format not recognized
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings (0 minutes, 0 seconds)
 
Title: Re: File not recognized: File format not recognized
Post by: BlueHazzard on September 16, 2019, 08:42:38 am
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Title: Re: File not recognized: File format not recognized
Post by: Miguel Gimenez on September 16, 2019, 09:46:48 am
Are you working on Windows?
Title: Re: File not recognized: File format not recognized
Post by: crisogona2000 on September 17, 2019, 09:35:00 am
yes, i am working on windows10 and i use gnu gcc compiler, to compile .so file.
Title: Re: File not recognized: File format not recognized
Post by: BlueHazzard on September 17, 2019, 10:44:43 am
windows does not use .so files, but .a files and without more information (you can provide them by following my link) we can not help much
Title: Re: File not recognized: File format not recognized
Post by: stahta01 on September 17, 2019, 03:05:33 pm
windows does not use .so files, but .a files and without more information (you can provide them by following my link) we can not help much

Windows uses .dll instead of .so files; and it tends to use .a or .lib files with the DLLs.

Tim S.