I'm just getting started with BCI2000. I have an ADC device that I'd like to write a SignalSource module for.
When I try to build the template generated with NewBCI2000Module I get a linker error:
I did some poking around, looked at the SignalGenerator module and figured out that it links with CoreMain.cpp.o. I copied that file to my desktop and edited the build/custom/MyADC/CMakeFiles/MyADC.dir/link.txt to link with the copied CoreMain.cpp.o. This did the trick and now my module builds.Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
I haven't used cmake that much before and this of course is a hack. Could someone tell me the proper way to resolve this problem, and if I should report a bug somewhere? Or maybe I'm missing something.
I'm running on MacOS.
Thanks!
