majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Unresolvable symbols with Visual Studio 2013 #280

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cmake for Visual Studio 12 2013 with default options
2. Build Debug or Release
3. Link to example project

What is the expected output? What do you see instead?
The library builds without errors. When trying to compile my example project 
the linker throws two errors for unresolvable symbols, see below

What version of the product are you using? On what operating system?
Visual Studio Express 2013

Please provide any additional information below:
Sorry, it's in german, but still pretty self explanatory I guess:

Fehler  1   error LNK2001: Nicht aufgelöstes externes Symbol ""public: class 
YAML::Node __thiscall YAML::Node::operator[]<char const [4]>(char const 
(&)[4])" (??$?A$$BY03$$CBD@Node@YAML@@QAE?AV01@AAY03$$CBD@Z)".

Fehler  2   error LNK2001: Nicht aufgelöstes externes Symbol ""public: class 
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> 
> const __thiscall YAML::Node::as<class std::basic_string<char,struct 
std::char_traits<char>,class std::allocator<char> > >(void)const " 
(??$as@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Node@YAML@
@QBE?BV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)".

Any help here would be greatly appreciated.

Best regards,
Daniel

Original issue reported on code.google.com by ellion0815@googlemail.com on 21 Feb 2015 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 29 Mar 2015 at 7:41

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 29 Mar 2015 at 7:43

GoogleCodeExporter commented 9 years ago
I'm not sure if this error is what I expected it to be. I fixed Issue 216, 
which I thought was related, and now it compiles and links for me.

Are you using 0.5.1 or the tip of the repo?

Original comment by jbe...@gmail.com on 30 Mar 2015 at 2:21

GoogleCodeExporter commented 9 years ago
Hey, nice coincidence. Back then I used git Head and 0.5.1. I tried it again on 
sunday with 0.5.1 and this time it just works. I'm not too sure why, but 
nonetheless I'm pretty sure that it was my fault and has nothing do to with 
your code. 

Sorry for bothering!

Original comment by ellion0815@googlemail.com on 31 Mar 2015 at 11:39

GoogleCodeExporter commented 9 years ago
Cool, thanks for following up.

Original comment by jbe...@gmail.com on 31 Mar 2015 at 1:09