This question already has answers here:
What is an undefined reference/unresolved external symbol error and how do I fix it?
(39 answers)
Closed 8 years ago.
I try to run my C++ code in Visual Studio 2013.
The code was running in the past the gcc 4.9
I don't know why the code is in Visual Studio not running.
I upload the code to GitHub so that everyone can take a look at it. Please help me. I really don't know why the code is not running in Visual Studio.
Error 1 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,1>::Property<int,1>(class std::function<int __cdecl(void)> const &,class std::function<void __cdecl(int)> const &)" (??0?$Property#H$00#Property#********##QAE#ABV?$function#$$A6AHXZ#std##ABV?$function#$$A6AXH#Z#4##Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 2 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,1>::operator int const (void)" (??B?$Property#H$00#Property#********##QAE?BHXZ) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 3 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator=(int const &)" (??4?$Property#H$00#Property#********##QAEHABH#Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 4 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator+=(int const &)" (??Y?$Property#H$00#Property#********##QAEHABH#Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 5 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator-=(int const &)" (??Z?$Property#H$00#Property#********##QAEHABH#Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 6 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator*=(int const &)" (??X?$Property#H$00#Property#********##QAEHABH#Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 7 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator/=(int const &)" (??_0?$Property#H$00#Property#********##QAEHABH#Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 8 error LNK2019: unresolved external symbol "public: int __thiscall ********::Property::Property<int,1>::operator%=(int const &)" (??_1?$Property#H$00#Property#********##QAEHABH#Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 9 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,2>::Property<int,2>(class std::function<int __cdecl(void)> const &)" (??0?$Property#H$01#Property#********##QAE#ABV?$function#$$A6AHXZ#std###Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 10 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,2>::operator int const (void)" (??B?$Property#H$01#Property#********##QAE?BHXZ) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 11 error LNK2019: unresolved external symbol "public: __thiscall ********::Property::Property<int,3>::Property<int,3>(class std::function<void __cdecl(int)> const &)" (??0?$Property#H$02#Property#********##QAE#ABV?$function#$$A6AXH#Z#std###Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 12 error LNK2019: unresolved external symbol "public: void __thiscall ********::Property::Property<int,3>::operator=(int)" (??4?$Property#H$02#Property#********##QAEXH#Z) referenced in function _main C:\Users\#######\documents\visual studio 2013\Projects\********\Property\PropertyTest.obj Property
Error 13 error LNK1120: 12 unresolved externals C:\Users\#######\documents\visual studio 2013\Projects\********\Debug\Property.exe Property
[Closed]
Like Praetorian wrote, Template Classes can not be easiely splited into Header (.h) and Source (.cpp) Files. The reason is that "the compiler creates a new class with the given template argument." quote
My Solution to split Template Classes into Header (.h) and Source (.cpp) Files looks like this:
// HEADER File test.h
#ifndef __TEST_FH__
#define __TEST_FH__
template<typename T>
class test {
public:
T object;
test();
~test();
};
#include "test.cpp"
#endif
// SOURCE File test.cpp
#ifdef __TEST_FH__
#ifndef __TEST_SOURCE_FH__
#define __TEST_SOURCE_FH__
template<typename T>
test::test() {
//code
}
template<typename T>
test::~test() {
//code
}
#endif
#endif
Once more thank you very much Praetorian.
Related
I downloaded OpenCV from NuGet on MSVS 2017, and ran a code I had found on this very site:
#include "stdafx.h"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat image = imread("C:\\Users\\Chubak\\Pictures\\index.jpg");
if (image.empty())
return -1;
imshow("TEST", image);
waitKey();
return 0;
}
But when I run the code I get this extremely unintelligible errors that I don't understand:
1>------ Build started: Project: OpenCLTest, Configuration: Debug Win32 ------
1>OpenCLTest.cpp
1>OpenCLTest.obj : error LNK2019: unresolved external symbol "void __cdecl cv::fastFree(void *)" (?fastFree#cv##YAXPAX#Z) referenced in function "public: __thiscall cv::Mat::~Mat(void)" (??1Mat#cv##QAE#XZ)
1>OpenCLTest.obj : error LNK2019: unresolved external symbol "public: __thiscall cv::_InputArray::_InputArray(class cv::Mat const &)" (??0_InputArray#cv##QAE#ABVMat#1##Z) referenced in function _main
1>OpenCLTest.obj : error LNK2019: unresolved external symbol "public: void __thiscall cv::Mat::deallocate(void)" (?deallocate#Mat#cv##QAEXXZ) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release#Mat#cv##QAEXXZ)
1>OpenCLTest.obj : error LNK2019: unresolved external symbol "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd#cv##YAHPAHH#Z) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release#Mat#cv##QAEXXZ)
1>OpenCLTest.obj : error LNK2019: unresolved external symbol "int __cdecl cv::waitKey(int)" (?waitKey#cv##YAHH#Z) referenced in function _main
1>OpenCLTest.obj : error LNK2019: unresolved external symbol "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &)" (?imshow#cv##YAXABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##ABV_InputArray#1##Z) referenced in function _main
1>OpenCLTest.obj : error LNK2019: unresolved external symbol "class cv::Mat __cdecl cv::imread(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?imread#cv##YA?AVMat#1#ABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##H#Z) referenced in function _main
1>c:\users\chubak\documents\visual studio 2017\Projects\OpenCLTest\Debug\OpenCLTest.exe : fatal error LNK1120: 7 unresolved externals
1>Done building project "OpenCLTest.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I understand that unresolved externals error is related to missing obj files but don't they come with the NuGet Package?
I also found this question but all the links given in the answers are no longer working, so this may or may not be a duplicate.
I recently started again on a C++ application. I am using NetLink for Sockets and Visual Studio for developing.
I made a small code but I got some errors. I've included the files from NetLink and I added ws2_32.lib (in linker/general & as pragma comment), but I still got these errors:
Error 1 error LNK2019: unresolved external symbol "void __cdecl NL::init(void)" (?init#NL##YAXXZ) referenced in function _main c:\Users\Joshua\documents\visual studio 2012\Projects\OBPP\OBPP\Main.obj
Error 4 error LNK2019: unresolved external symbol "public: class NL::Socket * __thiscall NL::Socket::accept(void)" (?accept#Socket#NL##QAEPAV12#XZ) referenced in function "private: virtual void __thiscall OnAccept::exec(class NL::Socket *,class NL::SocketGroup *,void *)" (?exec#OnAccept##EAEXPAVSocket#NL##PAVSocketGroup#3#PAX#Z) c:\Users\Joshua\documents\visual studio 2012\Projects\OBPP\OBPP\Main.obj
Error 6 error LNK2019: unresolved external symbol "public: bool __thiscall NL::SocketGroup::listen(unsigned int,void *)" (?listen#SocketGroup#NL##QAE_NIPAX#Z) referenced in function _main c:\Users\Joshua\documents\visual studio 2012\Projects\OBPP\OBPP\Main.obj
Error 5 error LNK2019: unresolved external symbol "public: __thiscall NL::SocketGroup::SocketGroup(void)" (??0SocketGroup#NL##QAE#XZ) referenced in function _main c:\Users\Joshua\documents\visual studio 2012\Projects\OBPP\OBPP\Main.obj
Error 2 error LNK2019: unresolved external symbol "public: __thiscall NL::Socket::Socket(unsigned int,enum NL::Protocol,enum NL::IPVer,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int)" (??0Socket#NL##QAE#IW4Protocol#1#W4IPVer#1#ABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##I#Z) referenced in function _main c:\Users\Joshua\documents\visual studio 2012\Projects\OBPP\OBPP\Main.obj
Error 3 error LNK2019: unresolved external symbol "public: __thiscall NL::Socket::~Socket(void)" (??1Socket#NL##QAE#XZ) referenced in function _main c:\Users\Joshua\documents\visual studio 2012\Projects\OBPP\OBPP\Main.obj
Error 7 error LNK1120: 6 unresolved externals c:\users\joshua\documents\visual studio 2012\Projects\OBPP\Debug\OBPP.exe
Code I'm using (just wanted to try out accepting):
#include <iostream>
#include "netlink\socket.h"
#include "netlink\socket_group.h"
#pragma comment(lib, "Ws2_32.lib")
#define PORT 30000
class OnAccept: public NL::SocketGroupCmd {
void exec(NL::Socket* socket, NL::SocketGroup* group, void* reference) {
NL::Socket* newConnection = socket->accept();
group->add(newConnection);
std::cout << "\nConnection " << newConnection->hostTo() << ":" << newConnection->portTo() << " added...";
std::cout.flush();
}
};
int main()
{
NL::init();
NL::Socket s(PORT);
NL::SocketGroup group;
group.setCmdOnAccept(&OnAccept());
group.add(&s);
if (group.listen(2000))
{
std::cout << "Listening on Sockets, port " << PORT << std::endl;
}
getchar();
}
I am the developer of the library. It can't be used with the headers only, you need to link the static/dynamic compiled library.
You have to build the library first, to generate the .lib file. Once you have the netLink.lib file built (or whatever you name it) you have to add that dependency to the linker.
I am not visual studio developer, But error message says unresolved external symbol means linker is not able to find some symbols.
Look at you linking command does it include Netlink library?
#include <dcmtk\oflog\config.h>
#include <dcmtk\dcmimgle\dcmimage.h>
#include <dcmtk\dcmnet\dicom.h>
#include <dcmtk\config\osconfig.h>
#include <iostream>
#include <fstream>
#include <ostream>
#include <iomanip>
#include<dcmtk\ofstd\ofstream.h>
#include<dcmtk\dcmdata\dctk.h>
int main(int argc, char *argv[])
{
OFLog::configure(OFLogger::INFO_LOG_LEVEL);
DicomImage *image = new DicomImage("E:\\datamining project\\dataset\\Lung CT image\\nodules\\nodules\\23.dcm", CIF_UsePartialAccessToPixelData, 0, 10 /* fcount */);
if (image->getStatus() == EIS_Normal)
{
do {
DCMIMGLE_INFO("processing frame " << image->getFirstFrame() + 1 << " to "<< image->getFirstFrame() + image->getFrameCount());
} while (image->processNextFrames());
}
delete image;
return 0;
}
Error 1 error LNK2019: unresolved external symbol "public: __thiscall OFString::~OFString(void)" (??1OFString##QAE#XZ) referenced in function _main c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
Error 2 error LNK2019: unresolved external symbol "public: __thiscall OFString::OFString(char const *)" (??0OFString##QAE#PBD#Z) referenced in function _main c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
Error 3 error LNK2019: unresolved external symbol "class OFLogger __cdecl DCM_dcmimgleGetLogger(void)" (?DCM_dcmimgleGetLogger##YA?AVOFLogger##XZ) referenced in function _main c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
Error 4 error LNK2019: unresolved external symbol "public: __thiscall DicomImage::DicomImage(char const *,unsigned long,unsigned long,unsigned long)" (??0DicomImage##QAE#PBDKKK#Z) referenced in function _main c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
Error 5 error LNK2019: unresolved external symbol "public: static void __cdecl OFLog::configure(enum OFLogger::LogLevel)" (?configure#OFLog##SAXW4LogLevel#OFLogger###Z) referenced in function _main c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
Error 6 error LNK2019: unresolved external symbol "public: bool __thiscall log4cplus::Logger::isEnabledFor(int)const " (?isEnabledFor#Logger#log4cplus##QBE_NH#Z) referenced in function "public: bool __thiscall OFLogger::isEnabledFor(int)const " (?isEnabledFor#OFLogger##QBE_NH#Z) c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
Error 7 error LNK2019: unresolved external symbol "public: void __thiscall log4cplus::Logger::forcedLog(int,class OFString const &,char const *,int,char const *)const " (?forcedLog#Logger#log4cplus##QBEXHABVOFString##PBDH1#Z) referenced in function "public: void __thiscall OFLogger::forcedLog(int,class OFString const &,char const *,int,char const *)const " (?forcedLog#OFLogger##QBEXHABVOFString##PBDH1#Z) c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
error LNK2019: unresolved external symbol "public: virtual __thiscall log4cplus::Logger::~Logger(void)" (??1Logger#log4cplus##UAE#XZ) referenced in function "public: virtual __thiscall OFLogger::~OFLogger(void)" (??1OFLogger##UAE#XZ) c:\Users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\dcmimage\dcmimage.obj dcmimage
error LNK1120: 8 unresolved externals c:\users\prashant naresh\documents\visual studio 2010\Projects\dcmimage\Debug\dcmimage.exe dcmimage
I don't have CMake installed at the moment on my machine, so I can't try this out myself.
Looks likes you have to build various libraries, this one looks particularly interesting: ofstd.lib. Then there's also oflog.lib.
Please make sure that you linked the following libraries to your project (Project Properties --> Linker --> Input --> Additional Dependencies):
oflog.lib;ofstd.lib;iphlpapi.lib;ws2_32.lib;netapi32.lib;wsock32.lib
I'm using OpenCV 2.4.6 and Visual Studio 2008 with Windows8.1 x86.
When I debug my program it signal me 9 errors:
1>FYD_control.obj : error LNK2019: unresolved external symbol "int __stdcall cv::waitKey(int)" (?waitKey#cv##YGHH#Z) referenced in function _main
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &)" (?imshow#cv##YGXABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##ABV_InputArray#1##Z) referenced in function _main
1>FYD_control.obj : error LNK2019: unresolved external symbol "double __stdcall cv::threshold(class cv::_InputArray const &,class cv::_OutputArray const &,double,double,int)" (?threshold#cv##YGNABV_InputArray#1#ABV_OutputArray#1#NNH#Z) referenced in function _main
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::cvtColor(class cv::_InputArray const &,class cv::_OutputArray const &,int,int)" (?cvtColor#cv##YGXABV_InputArray#1#ABV_OutputArray#1#HH#Z) referenced in function _main
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::medianBlur(class cv::_InputArray const &,class cv::_OutputArray const &,int)" (?medianBlur#cv##YGXABV_InputArray#1#ABV_OutputArray#1#H#Z) referenced in function _main
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::fastFree(void *)" (?fastFree#cv##YGXPAX#Z) referenced in function "public: __thiscall cv::Mat::~Mat(void)" (??1Mat#cv##QAE#XZ)
1>FYD_control.obj : error LNK2019: unresolved external symbol "int __stdcall cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd#cv##YGHPAHH#Z) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release#Mat#cv##QAEXXZ)
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::error(class cv::Exception const &)" (?error#cv##YGXABVException#1##Z) referenced in function "public: int & __thiscall cv::Mat::at<int>(int,int)" (??$at#H#Mat#cv##QAEAAHHH#Z)
1>C:\Users\___________________________\Debug\FYD2_Control.exe : fatal error LNK1120: 8 unresolved externals
1>Build log was saved at "file://c:\Users\_________________\Debug\BuildLog.htm"
1>FYD2_Control - 9 error(s), 0 warning(s)
I've analized everything and I've noticed that while in this errors I have
(?waitKey#cv##YGHH#Z)
(?imshow#cv##YGXABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##ABV_InputArray#1##Z)
(?threshold#cv##YGNABV_InputArray#1#ABV_OutputArray#1#NNH#Z)
(?cvtColor#cv##YGXABV_InputArray#1#ABV_OutputArray#1#HH#Z)
(?medianBlur#cv##YGXABV_InputArray#1#ABV_OutputArray#1#H#Z)
(?fastFree#cv##YGXPAX#Z)
(?_interlockedExchangeAdd#cv##YGHPAHH#Z)
(?error#cv##YGXABVException#1##Z)
if I analize the .lib there is the same, but with A instead the first G
(?waitKey#cv##YAHH#Z)
(?imshow#cv##YAXABV?$basic_string#DU?$char_traits#D#std##V?$allocator#D#2##std##ABV_InputArray#1##Z)
(?threshold#cv##YANABV_InputArray#1#ABV_OutputArray#1#NNH#Z)
(?cvtColor#cv##YAXABV_InputArray#1#ABV_OutputArray#1#HH#Z)
(?medianBlur#cv##YAXABV_InputArray#1#ABV_OutputArray#1#H#Z)
(?fastFree#cv##YAXPAX#Z)
(?_interlockedExchangeAdd#cv##YAHPAHH#Z)
(?error#cv##YAXABVException#1##Z)
Substituting the A with G in the .lib I solve this problem, but later it gives me an other error
The procedure entry point ?fastFree#cv##YGXPAX#Z could not be
located in the dynamic link library
How can I solve this?
Sorry for my english and thank's to anyone will answer.
you have problem with linking. replacing A with G in your library wont help. Make sure that you have added all libraries in additional dependencies. Below are the most necessary lib files make sure you have included it.
highgui210d.lib
cxcore210d.lib
cv210d.lib
Once you have done this if u still get error then go to lib folder of opencv (C:\opencv\build\x86\vc12\lib) and add all the lib files to additional dependencies (right click on your project select properties->configuration properties->linker->input then on right pane locate additional dependencies then add all lib file names) of your project.
I am quite new to C++ so I downloaded a sample C++ program. The sample program seems to hit the following error when it is compiling :-
Error 22 error LNK2019: unresolved external symbol _acsEnumServerNames#12 referenced in function "protected: virtual int __thiscall COpenTsrv::OnInitDialog(void)" (?OnInitDialog#COpenTsrv##MAEHXZ) Opentsrv.obj
I traced it to the referred function but I do not know anything wrong with it ?
BOOL COpenTsrv::OnInitDialog()
{
CDialog::OnInitDialog();
CenterWindow();
acsEnumServerNames(ST_CSTA, AddToList, (unsigned long) (CComboBox*)&m_TserverListControl);
UpdateData(FALSE);
The following is the build log. Apparently there are still other errors but would like to start with the first one.
1>Generating Code...
1>Compiling resources...
1>Compiling manifest to resources...
1>Linking...
1>Opentsrv.obj : error LNK2019: unresolved external symbol _acsEnumServerNames#12 referenced in function "protected: virtual int __thiscall COpenTsrv::OnInitDialog(void)" (? OnInitDialog#COpenTsrv##MAEHXZ)
1>Opentsrv.obj : error LNK2019: unresolved external symbol _acsQueryAuthInfo#8 referenced in function "protected: void __thiscall COpenTsrv::OnSelchangeTserverlist(void)" (?OnSelchangeTserverlist#COpenTsrv##IAEXXZ)
1>Opentsrv.obj : error LNK2019: unresolved external symbol _acsAbortStream#8 referenced in function "protected: virtual void __thiscall COpenTsrv::OnOK(void)" (?OnOK#COpenTsrv##MAEXXZ)
1>Tsapi.obj : error LNK2001: unresolved external symbol _acsAbortStream#8
1>Opentsrv.obj : error LNK2019: unresolved external symbol _acsEventNotify#16 referenced in function "protected: virtual void __thiscall COpenTsrv::OnOK(void)" (?OnOK#COpenTsrv##MAEXXZ)
1>Opentsrv.obj : error LNK2019: unresolved external symbol _acsOpenStream#60 referenced in function "protected: virtual void __thiscall COpenTsrv::OnOK(void)" (?OnOK#COpenTsrv##MAEXXZ)
1>Opentsrv.obj : error LNK2019: unresolved external symbol _cstaMonitorDevice#20 referenced in function "protected: long __thiscall COpenTsrv::OnTsapiAcsConfirmation(unsigned int,long)" (?OnTsapiAcsConfirmation#COpenTsrv##IAEJIJ#Z)
1>Sampldlg.obj : error LNK2019: unresolved external symbol _cstaMakeCall#20 referenced in function "protected: void __thiscall CSampleDlg::OnCall(void)" (?OnCall#CSampleDlg##IAEXXZ)
1>Sampldlg.obj : error LNK2019: unresolved external symbol _cstaClearConnection#16 referenced in function "protected: void __thiscall CSampleDlg::OnHangup(void)" (?OnHangup#CSampleDlg##IAEXXZ)
1>Sampldlg.obj : error LNK2019: unresolved external symbol _cstaAnswerCall#16 referenced in function "protected: void __thiscall CSampleDlg::OnAnswer(void)" (?OnAnswer#CSampleDlg##IAEXXZ)
1>Tsapi.obj : error LNK2019: unresolved external symbol _acsGetEventPoll#20 referenced in function "protected: long __thiscall CTsapiWnd::OnTsapiMsg(unsigned int,long)" (?OnTsapiMsg#CTsapiWnd##IAEJIJ#Z)
1>C:\Users\steventang\Documents\Visual Studio 2005\Projects\TSAPINEW\Debug\TSAPINEW.exe : fatal error LNK1120: 10 unresolved externals
1>Build log was saved at "file://c:\Users\steventang\Documents\Visual Studio 2005\Projects\TSAPINEW\TSAPINEW\Debug\BuildLog.htm"
1>TSAPINEW - 12 error(s), 21 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Any help to point me to the right direction would very much be appreciated.
Thanks
Seems like your compilation was sucessfull. Only the linking did not work.
Probably the linker is complaining because you defined the header of the method "acsEnumServerNames" but you did not provide an implementation of the method.
Maybe you used a header-file but you did not provide the library to which the header belongs ?
Find out to which pakage "acsEnumServerNames" belongs and check if you have the implementation of the method in some .c/.cpp file, or if the implementation should be provided by some library on which you do rely.