Author Topic: File not recognized: File format not recognized  (Read 558 times)

Offline crisogona2000

  • Single posting newcomer
  • *
  • Posts: 2
File not recognized: File format not recognized
« 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)
 


Offline Miguel Gimenez

  • Regular
  • ***
  • Posts: 371
Re: File not recognized: File format not recognized
« Reply #2 on: September 16, 2019, 09:46:48 am »
Are you working on Windows?

Offline crisogona2000

  • Single posting newcomer
  • *
  • Posts: 2
Re: File not recognized: File format not recognized
« Reply #3 on: September 17, 2019, 09:35:00 am »
yes, i am working on windows10 and i use gnu gcc compiler, to compile .so file.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2546
Re: File not recognized: File format not recognized
« Reply #4 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: File not recognized: File format not recognized
« Reply #5 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org