webcam linux

BlitzMax Forums/BlitzMax Programming/webcam linux

i found some sample code which i can compile(the code is c written).
i've tryied to import that file with bmx(that file has only the functions with a main to test them), make export for the main function and exec it.
now the problem is that to compile the c code i've used the -lSDL -lSDLmain params for gcc, but with bmax i can't, or not?
this is the question: could i set gcc params that bmk will use when compile?

PS: maybe i'll rewrite all the code using bmax or importing only a few commands
PS2: if it will work, i'll probably program a max mod for it, and public i under GPL.