Get c++ going in Mac

Moderator: Telldus

Post Reply
Halmhatt
Posts: 1
Joined: Thu Jan 18, 2018 11:08 am

Get c++ going in Mac

Post by Halmhatt » Thu Jan 18, 2018 11:08 am

Hi, I want to work with the telldus-core in C++ but I can not it to work.

I have the framework in:
Binary:

Code: Select all

/Library/Frameworks/TelldusCore.framework/TelldusCore
Header:

Code: Select all

/Library/Frameworks/TelldusCore.framework/Versions/2.1.1/Headers/telldus-core.h
How should I get this to work in c++

Code: Select all

#include<telldus-core.h>

int main()
{
    tdInit();
}
I have tried to add header file to

Code: Select all

/usr/local/indlude/telldus-core.h
and when that works I get

Code: Select all

Undefined symbols for architecture x86_64:
  "_tdInit", referenced from:
      _main in main.o
  "_tdRegisterDeviceEvent", referenced from:
      Events::Events()in main.o
  "_tdUnregisterCallback", referenced from:
      Events::~Events()in main.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Thanks

Post Reply