I followed the documention, and copied sample code, but I got errors:
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);
}
Any idea what am I doing wrong?