I've been trying to import a C++ source file but I've not had any luck. I tried to follow the tutorial but all I get is
Build Error: failed to compile C:/test/func.cpp
Any help?
Build Error: failed to compile C:/test/func.cpp
Any help?
//----- file: c_funcs.c ----- int Doubler( int x ){ return x+x; } '----- file: app.bmx ----- Import "c_funcs.c" Extern Function Doubler( x ) End Extern Print Doubler(10)
Build Error: failed to compile C:/Program Files/BlitzMax/mod/bah.mod/qtmaxgui.mod/qtglue.cpp
C:/Program Files/BlitzMax/mod/bah.mod/qtmaxgui.mod/qtglue.cpp:88: 'QDesktospWidget' was not declared in this scope
extern "C" { ... ... your functions in here ... ... }