Import "-l*"
BlitzMax Forums/BlitzMax Programming/Import "-l*"
| ||
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. |
| ||
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. |
| ||
Good to know, thanks. |