Importing C++

BlitzMax Forums/BlitzMax Programming/Importing C++

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I assumed he ment this
//----- 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)


But yep, posting the code you are using might be of help.

(ps. Ive never gotten it to work either, and all the threads about it are way over my head)