I'm trying to get this code to work (some old wallwasher lights, so no customer support):
#include <stdio.h>
#include <cstdlib> //system()
#include <conio.h>
#include <windows.h>
#include "IamBX.h"
#include "IamBX_Light.h"
int main()
{
// Setup amBX Interface and Device Interfaces
IamBX* pIamBX;
IamBX_Light *apIamBXLight[9]; // Create lib instance (struct)
amBXCreateInterface(&pIamBX, 1, 0, "test", "test", NULL, 0);
// ...
but I get
undefined reference to `amBXCreateInterface'
I have all these files in the working dir:
Dependency Walker:
NOTE: amBXCreateInterface
is a function from ambxrt.dll, I just don't know how to use it and Google didn't end up being of much use.
NOTE 2: I'm building it using MinGW's g++, tried the -lm
flag but it gives the same output