compile error

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
User avatar
The Silent One
Graphics
Posts: 1125
Joined: Tue Jul 01, 2003 8:27 pm

Re: compile error

#16 Post by The Silent One »

Code: Select all

1>TechsParser.cpp
1>c:\users\m\documents\freeorion sdk\include\boost\function_output_iterator.hpp(14): note: This header is deprecated. Use <boost/iterator/function_output_iterator.hpp> instead.
1>c:\users\m\documents\freeorion sdk\freeorion\parse\techsparser.cpp(247): error C2280: "boost::python::extract<value_ref_wrapper<int>>::extract(const boost::python::extract<value_ref_wrapper<int>> &)" : Es wurde versucht, auf eine gelöschte Funktion zu verweisen
1>c:\users\m\documents\freeorion sdk\include\boost\python\extract.hpp(141): note: Compiler hat hier "boost::python::extract<value_ref_wrapper<int>>::extract" generiert
1>c:\users\m\documents\freeorion sdk\include\boost\python\extract.hpp(141): note: "boost::python::extract<value_ref_wrapper<int>>::extract(const boost::python::extract<value_ref_wrapper<int>> &)": Die Funktion wurde implizit gelöscht, weil eine Basisklasse eine Funktion "boost::python::converter::extract_rvalue<T>::extract_rvalue(const boost::python::converter::extract_rvalue<T> &)" aufruft, die gelöscht wurde oder auf die nicht zugegriffen werden kann.
1>        with
1>        [
1>            T=value_ref_wrapper<int>
1>        ]
1>c:\users\m\documents\freeorion sdk\include\boost\python\extract.hpp(83): note: "boost::python::converter::extract_rvalue<T>::extract_rvalue(const boost::python::converter::extract_rvalue<T> &)": Die Funktion wurde implizit gelöscht, weil eine Basisklasse eine Funktion "boost::noncopyable_::noncopyable::noncopyable(const boost::noncopyable_::noncopyable &)" aufruft, die gelöscht wurde oder auf die nicht zugegriffen werden kann.
1>        with
1>        [
1>            T=value_ref_wrapper<int>
1>        ]
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13380
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: compile error

#17 Post by Geoff the Medio »

How did you download and set up the SDK?

User avatar
The Silent One
Graphics
Posts: 1125
Joined: Tue Jul 01, 2003 8:27 pm

Re: compile error

#18 Post by The Silent One »

Went to https://github.com/freeorion/freeorion-sdk/releases, downloaded FreeOrionSDK_12_MSVC-v141-Win32.zip.
Extracted archive and ran bootstrap.bat as administrator.
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13380
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: compile error

#19 Post by Geoff the Medio »

Shouldn't need to be in administrator mode to run bootstrap.bat... Where did you unzip the SDK to?

User avatar
The Silent One
Graphics
Posts: 1125
Joined: Tue Jul 01, 2003 8:27 pm

Re: compile error

#20 Post by The Silent One »

c:\users\m\documents\freeorion sdk\
and freeorion is in
c:\users\m\documents\freeorion sdk\freeorion
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13380
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: compile error

#21 Post by Geoff the Medio »

Same line compiles fine for me.

What is BOOST_LIB_VERSION defined to for you?

User avatar
The Silent One
Graphics
Posts: 1125
Joined: Tue Jul 01, 2003 8:27 pm

Re: compile error

#22 Post by The Silent One »

1_74
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13380
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: compile error

#23 Post by Geoff the Medio »

If you right click on extract on the line with the error, at go to definition, where does it take you?
right click popup menu with go to definition in MSVC2017
right click popup menu with go to definition in MSVC2017
extract_go_to_definitionpng.png (221.67 KiB) Viewed 788 times
I end up in SDKDir\include\boost\python\extract.hpp on line 153: inline extract<T>::extract(api::object const& o)

User avatar
The Silent One
Graphics
Posts: 1125
Joined: Tue Jul 01, 2003 8:27 pm

Re: compile error

#24 Post by The Silent One »

So do I:

Code: Select all

inline extract<T>::extract(api::object const& o)
Directory is also the same.
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13380
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: compile error

#25 Post by Geoff the Medio »

Do you have any other versions of boost installed that might be in an environment path variable?

What Visual Studio version are you using? (Full number in Help -> About)

User avatar
The Silent One
Graphics
Posts: 1125
Joined: Tue Jul 01, 2003 8:27 pm

Re: compile error

#26 Post by The Silent One »

Microsoft Visual Studio Community 2017
Version 15.7.2
VisualStudio.15.Release/15.7.2+27703.2018
Microsoft .NET Framework
Version 4.8.04084

Visual C++ 2017 00369-60000-00001-AA292
Microsoft Visual C++ 2017
Geoff the Medio wrote: Mon Oct 18, 2021 8:30 pmDo you have any other versions of boost installed that might be in an environment path variable?
I don't think so, searching my HD only shows the boost copy from the SDK.
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13380
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: compile error

#27 Post by Geoff the Medio »

The Silent One wrote: Mon Oct 18, 2021 8:54 pm Microsoft Visual Studio Community 2017
Version 15.7.2
Try updating that? I've got 15.9.28 and the Check for Updates thing in the Help menu says 15.9.40 is available.

User avatar
The Silent One
Graphics
Posts: 1125
Joined: Tue Jul 01, 2003 8:27 pm

Re: compile error

#28 Post by The Silent One »

That did it, thanks a lot Geoff!
Attachments
in_game.jpg
in_game.jpg (259.94 KiB) Viewed 748 times
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.

Post Reply