Seite 1 von 1

Error with the TXT examples in C++

Verfasst: 31 Aug 2015, 19:47
von bethory
Hi everyone!

I have been trying to program my TXT controller from DevC++ using the files availiable in the web page "TXT-C-Programming-Expert-Kit", but any example throws the next error. :(

C:\Users\usted\AppData\Local\Temp\cc5FVPet.o Main.cpp:(.text+0x96): undefined reference to ftIF2013TransferAreaComHandler::ftIF2013TransferAreaComHandler(shm_if_s*, int, char const*, char const*)'

even if I use only a small part of code :cry:

#include <iostream>
#include "../Common/ftProInterface2013TransferAreaCom.h"
using namespace std;
FISH_X1_TRANSFER *TransArea;
ftIF2013TransferAreaComHandler *ComHandler;
int main()
{
TransArea = new FISH_X1_TRANSFER[IF08_MAX];
ComHandler = new ftIF2013TransferAreaComHandler( TransArea, IF08_MAX, "192.168.7.2" );
return 0;
}
We appreciate all help than you can give us
greetings from Colombia :D

Re: Error with the TXT examples in C++

Verfasst: 01 Sep 2015, 10:48
von JonnyC
Hello and :D welcome

Re: Error with the TXT examples in C++

Verfasst: 02 Sep 2015, 11:09
von NooN
Hello bethory,

have you included the files found in /Common/ in your DevC++ project?
It seems that you are missing the actual implemention of the classes (the .cpp files) so the linker gives you that error.

Greetings from Germany :-)