简体   繁体   中英

NetBeans 7.0.1 C++ - using a static library, 'undefined reference to'

I'm trying to write a program, for an exercise, that uses a static library - .a and .h files provided by the school. I followed my logic and answers I saw here, and added the .a file in the project's Properties -> Build -> Linker -> libraries. The program #includes the file with "file.h", and all files are in the same folder.

Although everything appears to be in order and the console shows that the .a file is added to the linker command, I get 'undefined reference to (functions from library)' errors.

Please help!

检查这个什么参数,你必须在链接过程中通过

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM