Import "-l*"

BlitzMax Forums/BlitzMax Programming/Import "-l*"

col(Posted 2012) [#1]
Hiya,

I've noticed this evening that when using the Import command with the compiler -l flag it only seems to notice the .a files in the BlitzMax/Lib folder. Is that the expected behavior or is my MingW not setup correctly and it should also be looking in the MingW/lib folder too?

Cheers.


col(Posted 2012) [#2]
Just in case anyone wants to know:-

You can use the compiler switch '-L' followed by the file path that you want the linker to also look in, then use the '-l' switch with the lib filename you want to link.

Import "-LC:\MingW\lib\" 'Look in MingW\lib\ folder for .a archive files.
Import "-l*" 'Replace the asterisk with the correct archive filename.


ProfJake(Posted 2012) [#3]
Good to know, thanks.