| View previous topic :: View next topic |
| Author |
Message |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Mon May 18, 2009 3:04 am Post subject: C++ bulletml errors |
|
|
| Code: | brg[i].bulletml = new BulletMLParserTinyXML(fileName);
brg[i].bulletml->build(); |
| Quote: | class BulletMLParser {
protected:
typedef std::vector<std::string> MyAttributes;
typedef MyAttributes::const_iterator MyAttributeIte;
public:
DECLSPEC BulletMLParser();
DECLSPEC virtual ~BulletMLParser();
public:
DECLSPEC void build();
DECLSPEC virtual void parse() =0; |
im using visual C++ 2008 and i get errors, most along the line of
| Code: | | unresolved external symbol "public: void __thiscall BulletMLParser::build(void)" (?build@BulletMLParser@@QAEXXZ) referenced in function "int __cdecl readBulletMLFiles(char const *,struct Barrage * const)" |
i got about 23 of these errors, all to do with these bulletml files
any help guys?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon May 18, 2009 3:11 am Post subject: |
|
|
| Are you actually linking against what you need to?
|
|
| Back to top |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Mon May 18, 2009 4:04 am Post subject: |
|
|
not sure what you mean
but if you mean
| Code: | #include "bulletml/bulletmlparser.h"
#include "bulletml/bulletmlparser-tinyxml.h"
#include "bulletml/bulletmlrunner.h | "
then yeh
_________________
|
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Mon May 18, 2009 4:24 am Post subject: |
|
|
If this 'bulletml' is inside a dll you should link to it like slovach mentioned:
#pragma comment(lib, 'bulletml.lib')
or in your project settings under linker options
If it's not a dll you should have the bulletml files (not the headers but the actual cpp files) included in your project I think (not sure).
|
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Mon May 18, 2009 5:51 am Post subject: |
|
|
| tombana wrote: | If this 'bulletml' is inside a dll you should link to it like slovach mentioned:
#pragma comment(lib, 'bulletml.lib')
or in your project settings under linker options
If it's not a dll you should have the bulletml files (not the headers but the actual cpp files) included in your project I think (not sure). | It could be a static library too -> no .cpp files nor .dll files. Just link it against the bulletml.lib, if you have one. Also, you might need extern "C" stuffs (see Parashift FAQ).
|
|
| Back to top |
|
 |
|