![]() |
| | #1 | |||
| Registered User Join Date: Dec 2006
Posts: 69
| Linker errors in VC++ 2005 I want to use this code in two ways: from a C++ application, and as a plugin in the A6 game engine. So I came up with this idea: Build the NetworkEngine as a static library (.lib). For my C++ app: simply link the NetworkEngine library and use the classes. For the A6 plugin: create a new C++ dll-project that links an engine library (this is required) and the NetworkEngine.lib. I haven't tried linking the library in a c++ app, but I'm now creating the A6 plugin and am running into some problems. When I try to build the plugin project, I get a linker error: can't find libc.lib. The A6 manual says the following about building plugins in VC++ 2005: Quote:
NetworkEngine: General > Configuration Type: Static Library (.lib) C / C++ > Code Generation > Runtime Library: Multi-threaded Debug (/MTd) Librarian > General > Additional Dependencies: RakNetLibStaticDebug.lib (needed because I use RakNet) Librarian > General > Link Library Dependencies: Yes (Otherwise I'd have to link to RakNet in the project that uses this NetworkEngine library) A6Plugin: General > Configuration Type: Dynamic Library (.dll) C / C++ > Code Generation > Runtime Library: Multi-threaded Debug DLL (/MDd) Linker > Input > Additional Dependencies: "Network Engine.lib" adll.lib libcmt.lib // Network Engine.lib is my own library, adll.lib is the A6 engine library that has to be linked and libcmt.lib is what the manual tells me to link. Linker > Input > Ignore Specific Library: libc.lib The crazy thing is, that when I don't use any objects from my NetworkEngine library, it compiles and links fine, and I can use the plugin (without any usefull functions, though) in A6. When I add this line: Code: NetworkEngine NE(10, 10, 60000, 5); // Create an instance of class NetworkEngine, called NE. Quote:
Quote:
This is driving me crazy.. Any help is greatly appreciated! | |||
| C+/- is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linker errors | jw232 | C++ Programming | 3 | 06-12-2009 12:56 PM |
| Linker Errors in OpenGL | Sentral | Game Programming | 2 | 07-19-2005 04:29 PM |
| Linker errors - Multiple Source files | nkhambal | C Programming | 3 | 04-24-2005 02:41 AM |
| help, linker errors when adding library file to project | ngcfan525 | C++ Programming | 1 | 03-09-2003 02:27 PM |
| Linker errors with simple static library | Dang | Windows Programming | 5 | 09-08-2001 09:38 AM |