Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » external library
external library [message #45759] Sat, 02 January 2016 21:50 Go to next message
Mq35 is currently offline  Mq35
Messages: 10
Registered: January 2016
Promising Member
I wrote a test win32 console app. I connected to it external libraries. When i compile the project occurs the error: "xx.lib: error adding symbols: File in wrong format". What keys should I use to get rid of errors?
Re: external library [message #45766 is a reply to message #45759] Sun, 03 January 2016 11:05 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3030
Registered: August 2008
Ultimate Member
Hello Mq35

The information you have given us is very scarce... Probably you are using MinGW in Windows, is that so?

Maybe you could try first a hello application with plain C (no U++), link to it the libraries, one by one, to see what is the one that is the source of the problem. To do that you can open TheIDE, click on "New package" (lower right side), and choose "Console application (no U++)"

index.php?t=getfile&id=4908&private=0
  • Attachment: sc.JPG
    (Size: 96.71KB, Downloaded 338 times)


Best regards
Iñaki
Re: external library [message #45768 is a reply to message #45766] Sun, 03 January 2016 11:58 Go to previous messageGo to next message
Mq35 is currently offline  Mq35
Messages: 10
Registered: January 2016
Promising Member
I download stable version TheIDE with MINGW. And, I using it in Windows 10 pro (x64).
This problem occurs in my "Console application (no U++)". It is little programm (sample) for test the usb module (UMFT4222EV). But I do not linked it.

index.php?t=getfile&id=4909&private=0

MayBe do I need any keys for linker?

sorry, my english is very bad Sad
  • Attachment: 1.jpg
    (Size: 205.07KB, Downloaded 321 times)
Re: external library [message #45770 is a reply to message #45768] Sun, 03 January 2016 13:57 Go to previous messageGo to next message
Mq35 is currently offline  Mq35
Messages: 10
Registered: January 2016
Promising Member
I'll appreciate if someone explain me how to correct the error of the linker
  • Attachment: MyApps.zip
    (Size: 242.96KB, Downloaded 84 times)
Re: external library [message #45772 is a reply to message #45770] Sun, 03 January 2016 14:27 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3030
Registered: August 2008
Ultimate Member
Hello Mq35

Program runs successfully with TDM MinGW and MSC15 32 bits, just by using your files unchanged.

Message printed is: No FT4222 device is found!, as it seems my computer does not have any FDTI chip. Before running it I should have to download the dll and lib from previous link in FDTI (Future Technology Devices Intl.), as the ftd2xx.dll file was not in the .zip.

This is the screenshot of my "Build Methods". Please try with it:

index.php?t=getfile&id=4912&private=0

  • Attachment: capt.JPG
    (Size: 53.58KB, Downloaded 290 times)


Best regards
Iñaki
Re: external library [message #45774 is a reply to message #45772] Sun, 03 January 2016 15:04 Go to previous messageGo to next message
Mq35 is currently offline  Mq35
Messages: 10
Registered: January 2016
Promising Member
Unfortunately not linked Sad
index.php?t=getfile&id=4913&private=0

What do i do not correctly?
  • Attachment: 2.jpg
    (Size: 146.76KB, Downloaded 288 times)
Re: external library [message #45776 is a reply to message #45774] Sun, 03 January 2016 16:14 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 890
Registered: December 2006
Experienced Contributor
You are trying to link 32-bit and 64-bit code.

BTW, TDM MinGW 5.1 is producing broken code. Try to use versions 4.8 or 4.9.


Regards,
Novo
Re: external library [message #45777 is a reply to message #45776] Sun, 03 January 2016 16:30 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3030
Registered: August 2008
Ultimate Member
True. In fact you have changed the lib folders from first screenshot (32 bits) to the second one (64 bits).

Best regards
Iñaki
Re: external library [message #45779 is a reply to message #45777] Sun, 03 January 2016 17:01 Go to previous messageGo to next message
Mq35 is currently offline  Mq35
Messages: 10
Registered: January 2016
Promising Member
It is VICTORY!!!
I download MinGW-w64 v5.3 and all is linked.
Thanks all!!!
Re: external library [message #45785 is a reply to message #45779] Mon, 04 January 2016 16:37 Go to previous message
koldo is currently offline  koldo
Messages: 3030
Registered: August 2008
Ultimate Member
Smile

Best regards
Iñaki
Previous Topic: MINGW 64, the compiled .rc file can not be linked properly
Next Topic: pkg-config to use third-party libs
Goto Forum:
  


Current Time: Sun Nov 17 13:34:05 CET 2019

Total time taken to generate the page: 0.02380 seconds