HTTrack Website Copier
Free software offline browser - FORUM
Subject: I Can't link libhttrack in a C++ program!!
Author: Jose Antonio Farias
Date: 12/30/2003 04:36
 
Hi,

I'using the Visual .NET 2003 (Visual C++ 7.0) and i can't 
link the dll..i get this errors:

Compiling...
Test2.cpp
Linking...
Test2.obj : error LNK2019: unresolved external 
symbol "__declspec(dllimport) int __cdecl hts_main
(int,char * *)" (__imp_?hts_main@@YAHHPAPAD@Z) referenced 
in function _main
Test2.obj : error LNK2019: unresolved external 
symbol "__declspec(dllimport) int __cdecl htswrap_add(char 
*,void *)" (__imp_?htswrap_add@@YAHPADPAX@Z) referenced in 
function _main
Test2.obj : error LNK2019: unresolved external 
symbol "__declspec(dllimport) int __cdecl hts_init(void)" 
(__imp_?hts_init@@YAHXZ) referenced in function _main
Debug/Test2.exe : fatal error LNK1120: 3 unresolved 
externals

But if i compile "as C Code" this works well...whats 
wrong?? I NEED compile in C++ ..

Thanks in advance,

José.
 
Reply


All articles

Subject Author Date
I Can't link libhttrack in a C++ program!!

12/30/2003 04:36
Re: I Can't link libhttrack in a C++ program!!

12/30/2003 09:42
Re: I Can't link libhttrack in a C++ program!!

12/30/2003 15:53




f

Created with FORUM 2.0.11