[FIXED][f9cbaef][Linux] Build error.

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
hetdegon
Posts: 31
Joined: Sat May 10, 2014 23:01

[FIXED][f9cbaef][Linux] Build error.

Post by hetdegon »

I get this error when building latest (at the time of writing) version from git in Ubuntu Linux (15.10, 64bit).
Using cmake 3.2.2 and gcc 5.2.1-22ubuntu2. I was able to build gzdoom properly (and consistently) before in this exact setup.

Code: Select all

[ 32%] Building CXX object src/CMakeFiles/zdoom.dir/p_lnspec.o
/home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp: In function ‘int LS_SendToCommunicator(line_t*, AActor*, bool, int, int, int, int, int)’:
/home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp:2994:12: error: ambiguous overload for ‘operator!=’ (operand types are ‘FString’ and ‘long int’)
    if (msg != NULL)
            ^
/home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp:2994:12: note: candidate: operator!=(const char*, const char*) <built-in>
In file included from /home/hetdegon/Repositories/gzdoom/src/doomtype.h:46:0,
                 from /home/hetdegon/Repositories/gzdoom/src/c_cvars.h:37,
                 from /home/hetdegon/Repositories/gzdoom/src/doomstat.h:31,
                 from /home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp:37:
/home/hetdegon/Repositories/gzdoom/src/zstring.h:304:7: note: candidate: bool FString::operator!=(const FString&) const
  bool operator != (const FString &illegal) const;
       ^
src/CMakeFiles/zdoom.dir/build.make:2347: recipe for target 'src/CMakeFiles/zdoom.dir/p_lnspec.o' failed
make[2]: *** [src/CMakeFiles/zdoom.dir/p_lnspec.o] Error 1
CMakeFiles/Makefile2:785: recipe for target 'src/CMakeFiles/zdoom.dir/all' failed
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2
Last edited by hetdegon on Wed Dec 02, 2015 11:57, edited 1 time in total.
Edward-san
Developer
Developer
Posts: 197
Joined: Sun Nov 29, 2009 16:36

Re: [f9cbaef][Linux] Build error.

Post by Edward-san »

Graf didn't port the zdoom fix to gzdoom yet. You can workaround it by replacing 'msg' with 'str' in the condition mentioned in the error.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [f9cbaef][Linux] Build error.

Post by Graf Zahl »

Now I did.
hetdegon
Posts: 31
Joined: Sat May 10, 2014 23:01

Re: [f9cbaef][Linux] Build error.

Post by hetdegon »

Yup, it builds completely now. I'll mark this as solved then. Thanks!
Locked

Return to “Closed Bugs”