guangzhou



shanghai

Recent posts:
Blog index
About
RSS

POLINK: error: Unresolved external symbol ‘xxx’

November 06, 2016     C   782   

这些年在win上编写C程序一直使用pellesc IDE,个人感觉非常的方便,而且一直持续更新,支持最新的C,今天在使用pellesc导入程序运行的时候出现了下面的错误:

POLINK: error: Unresolved external symbol ‘Set’.
POLINK: error: Unresolved external symbol ‘new’.
POLINK: error: Unresolved external symbol ‘Object’.
POLINK: error: Unresolved external symbol ‘add’.
POLINK: error: Unresolved external symbol ‘contains’.
POLINK: error: Unresolved external symbol ‘differ’.
POLINK: error: Unresolved external symbol ‘drop’.
POLINK: error: Unresolved external symbol ‘delete’.
POLINK: fatal error: 8 unresolved external(s).
*** Error code: 1 ***

查阅相关的官方论坛,也有类似错误的讨论,但是解决的办法都不适合我,想了一下找到答案

因为pellesc在打开含main函数的.c文件时,如果你选择编译,就会自动为你创建一个C项目,而且会帮你关联头文件,但是不会将.h相应的.c实现文件关联进来,所以会出现上面的错误,这个时候在项目上单击右键添加相应的.c文件即可

如果文章对您有帮助,欢迎点击下方按钮打赏作者

Comments

No comments yet.
To verify that you are human, please fill in "七"(required)