Use
if you want to link c code with your blitzmax project.
You can't do it the otherway because blitzmax programs must have certain things initialised at startup like the garbage collector so if your c code has a main, you should rename it to cmain or whatever, import that function along with the above and call it from your bmx prog.
see blitzmax/tmp/ld.tmp after you build your blitzmax program for an idea of what exactly is being linked to produce your executable.
Import "myprog.c"
if you want to link c code with your blitzmax project.
You can't do it the otherway because blitzmax programs must have certain things initialised at startup like the garbage collector so if your c code has a main, you should rename it to cmain or whatever, import that function along with the above and call it from your bmx prog.
see blitzmax/tmp/ld.tmp after you build your blitzmax program for an idea of what exactly is being linked to produce your executable.