我跟着機制的文檔,並複製示例代碼,但我得到的錯誤:迷你XML解析的外部符號
http://michaelrsweet.github.io/mxml/
Error LNK2019 unresolved external symbol _mxmlDelete referenced in function _load_rate
Error LNK2019 unresolved external symbol _mxmlLoadFile referenced in function _load_rate
#include <stdio.h>
#include <stdlib.h>
#include <mxml.h>
#include "Rate.h"
void load_rate(rate *currentrate) {
FILE *fp;
mxml_node_t *tree;
fp = fopen("filename.xml", "r");
tree = mxmlLoadFile(NULL, fp, MXML_TEXT_CALLBACK);
fclose(fp);
mxmlDelete(tree);
}
任何想法,我究竟做錯了什麼?
[什麼是未定義的引用/未解析的外部符號錯誤,以及如何解決它?](http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol -error-and-how-do-i-fix) –