compiling almost done - problem with global.hpp
Moderator: Forum Moderators
-
- Posts: 13
- Joined: September 8th, 2006, 2:22 pm
compiling almost done - problem with global.hpp
I am trying to compile wesnoth on visual studio 8 for the first time. I use the instructions made by wintifax. In some cases I use more current versions of tools.
I have been able to fix most problems. There are some left now (apart from warnings of deprecated functions):
1.) 17 times the following error: ...\widget.cpp(14) : fatal error C1083: Cannot open include file: 'global.hpp': No such file or directory
I have checked that the file exists and that it is mentioned in the right directory in the project file. I have also looked into the file itself and did not find any problem.
Do you have any idea, what causes this error?
2.) parser.cpp
...\src\serialization\parser.cpp(16) : fatal error C1083: Cannot open include file: 'serialization/parser.hpp': No such file or directory
3.) playlevel.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\playlevel.cpp': No such file or directory
I have been able to fix most problems. There are some left now (apart from warnings of deprecated functions):
1.) 17 times the following error: ...\widget.cpp(14) : fatal error C1083: Cannot open include file: 'global.hpp': No such file or directory
I have checked that the file exists and that it is mentioned in the right directory in the project file. I have also looked into the file itself and did not find any problem.
Do you have any idea, what causes this error?
2.) parser.cpp
...\src\serialization\parser.cpp(16) : fatal error C1083: Cannot open include file: 'serialization/parser.hpp': No such file or directory
3.) playlevel.cpp
c1xx : fatal error C1083: Cannot open source file: '.\src\playlevel.cpp': No such file or directory
-
- Posts: 13
- Joined: September 8th, 2006, 2:22 pm
-
- Posts: 13
- Joined: September 8th, 2006, 2:22 pm
-
- Posts: 13
- Joined: September 8th, 2006, 2:22 pm
thanks you, zaimoni!
now I have the same problem as Saragar describes in a different thread (http://www.wesnoth.org/forum/viewtopic. ... 6227148cd5)
I'll try and see, if the instructions there help me.
now I have the same problem as Saragar describes in a different thread (http://www.wesnoth.org/forum/viewtopic. ... 6227148cd5)
I'll try and see, if the instructions there help me.
-
- Posts: 13
- Joined: September 8th, 2006, 2:22 pm
after putting the libfreetype.lib as provided by Xan into the path, more linking errors appear:
Generating Code...
Linking...
about.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
loadscreen_empty.obj : error LNK2005: "public: void __thiscall loadscreen::set_progress(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?set_progress@loadscreen@@QAEXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "public: void __thiscall loadscreen::increment_progress(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?increment_progress@loadscreen@@QAEXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "public: void __thiscall loadscreen::clear_screen(bool)" (?clear_screen@loadscreen@@QAEX_N@Z) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_filesystem_progress(void)" (?increment_filesystem_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_binary_wml_progress(void)" (?increment_binary_wml_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_set_config_progress(void)" (?increment_set_config_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_parser_progress(void)" (?increment_parser_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "public: static class loadscreen * loadscreen::global_loadscreen" (?global_loadscreen@loadscreen@@2PAV1@A) already defined in loadscreen.obj
LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'
Generating Code...
Linking...
about.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
loadscreen_empty.obj : error LNK2005: "public: void __thiscall loadscreen::set_progress(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?set_progress@loadscreen@@QAEXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "public: void __thiscall loadscreen::increment_progress(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?increment_progress@loadscreen@@QAEXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "public: void __thiscall loadscreen::clear_screen(bool)" (?clear_screen@loadscreen@@QAEX_N@Z) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_filesystem_progress(void)" (?increment_filesystem_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_binary_wml_progress(void)" (?increment_binary_wml_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_set_config_progress(void)" (?increment_set_config_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "void __cdecl increment_parser_progress(void)" (?increment_parser_progress@@YAXXZ) already defined in loadscreen.obj
loadscreen_empty.obj : error LNK2005: "public: static class loadscreen * loadscreen::global_loadscreen" (?global_loadscreen@loadscreen@@2PAV1@A) already defined in loadscreen.obj
LINK : fatal error LNK1104: cannot open file 'LIBCD.lib'