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 » How to link to external libraries
Re: How to link to external libraries [message #11529 is a reply to message #11524] Sun, 16 September 2007 18:07 Go to previous messageGo to previous message
Ishi is currently offline  Ishi
Messages: 5
Registered: July 2007
Location: Middlesbrough, UK
Promising Member
Thanks for the reply. Unfortunately I still can't get it to work. I've taken some screenshots so you can see my setup better:

http://i1.tinypic.com/4mudy7n.png
http://i17.tinypic.com/4zksjr8.png

I'm including C:\lib\TXF\TXF.h with a simple #include <TXF.h> which seems to work fine.

I'm trying to use the lib C:\lib\TXF\TXF.lib, and that's the bit that doesn't seem to work for some reason.

My error output is:

Linking...
(option '-O 2' ignored)
File 'libcmt' not found.
File 'oldnames' not found.
File 'libcpmt' not found.
___main: duplicate
-> used:      libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
2 undefined symbol(s):
TXF::Document::Document(char const*)(referenced from c:\upp\out\engineeditor\mingw.debug_full.gui.main\editor-project.o:1; std::__verify_grou
	ping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&); CEditor::saveProject(bool
	); CEditor::saveProject(bool); ...)
TXF::Document::~Document()(referenced from c:\upp\out\engineeditor\mingw.debug_full.gui.main\editor-project.o:1; std::__verify_grouping(char 
	const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&); CEditor::saveProject(bool); CEditor
	::saveProject(bool); ...)
linking aborted due to fatal errors
collect2: ld returned 1 exit status


Thanks again for any help, much appreciated.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New mingw version
Next Topic: problem with compilation/linking - Duplicate .cpp file in single package
Goto Forum:
  


Current Time: Wed Aug 27 03:33:35 CEST 2025

Total time taken to generate the page: 0.06864 seconds