Error with the TXT examples in C++

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
bethory
Beiträge: 1
Registriert: 31 Aug 2015, 18:45

Error with the TXT examples in C++

Beitrag von bethory » 31 Aug 2015, 19:47

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

JonnyC
Beiträge: 25
Registriert: 17 Aug 2015, 21:26
Wohnort: Stuttgart

Re: Error with the TXT examples in C++

Beitrag von JonnyC » 01 Sep 2015, 10:48

Hello and :D welcome
Gruß
JonnyC

NooN
Beiträge: 8
Registriert: 22 Aug 2015, 10:41
Wohnort: Rhein-Neckar Region

Re: Error with the TXT examples in C++

Beitrag von NooN » 02 Sep 2015, 11:09

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 :-)

Antworten