Skip to Content.
Sympa Menu

charm - [charm] Can you help me with the link error with Charm++ in VS2005?

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

[charm] Can you help me with the link error with Charm++ in VS2005?


Chronological Thread 
  • From: 倪安宁 <nianning1981 AT 163.com>
  • To: <gzheng AT illinois.edu>
  • Cc: charm AT cs.uiuc.edu
  • Subject: [charm] Can you help me with the link error with Charm++ in VS2005?
  • Date: Wed, 24 Feb 2010 21:50:57 +0800
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Hi :

I have added the libraries (i.e. libldb-none.o libck.a libmemory-default.o libconv-cplus-y.a libconv-core.a libconv-util.a libthreads-default.o ws2_32.lib kernel32.lib user32.lib psapi.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib) to my charm++ project(called mytest) developed with VS2005. Then I builded the project, it can be compiled successfully, but when linking, the following errors occurred.

 

------ Build started: Project: mytest, Configuration: Debug Win32 ------

Linking...

LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library

libmemory-default.o : error LNK2019: unresolved external symbol _GetProcessMemoryInfo@12 referenced in function _MemusageWindows

libck.a(trace-common.o) : error LNK2019: unresolved external symbol "void __cdecl _createTraces(char * *)" (?_createTraces@@YAXPAPAD@Z) referenced in function "void __cdecl _traceInit(char * *)" (?_traceInit@@YAXPAPAD@Z)

libck.a(init.o) : error LNK2019: unresolved external symbol "void __cdecl _registerExternalModules(char * *)" (?_registerExternalModules@@YAXPAPAD@Z) referenced in function "void __cdecl _initCharm(int,char * *)" (?_initCharm@@YAXHPAPAD@Z)

.\Debug/mytest.exe : fatal error LNK1120: 3 unresolved externals

Project : warning PRJ0018 : The following environment variables were not found:

$(INC)

Build log was saved at "file://f:\charm++\mytest\Debug\BuildLog.htm"

mytest - 4 error(s), 1 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

 Should I add any additional libraries to my project?

 

Thanks

 

Anning

 




Archive powered by MHonArc 2.6.16.

Top of Page