VGOEmulator.net

A Development Project for the Vanguard:Saga of Heroes MMO

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • Portal
  • Project Manager
  • Bug Tracker
  • Server List
  • Wiki
  • Donate
  • Login
  • Register
  • Board index Support Linux
  • Search

Linux compile error: rev 1197

Help with the Linux x86/x64 versions of the VGOEmulator Server

Moderator: Community Managers

Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
User avatar
John Adams
Retired
Posts: 4582
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Linux compile error: rev 1197
  • Quote

Post by John Adams » Tue Apr 07, 2015 3:48 pm

A new and exciting compile failure today:

Code: Select all

g++ -c `mysql_config --cflags` -march=native -pipe -O -pthread -std=c++0x -Wall -g -Wno-reorder -DVG_WORLD -DVG_DEBUG -D_GNU_SOURCE MoverProcessor.cpp -o MoverProcessor.o
MoverProcessor.cpp: In constructor ‘ToingAndFroingObjectProcessor::ToingAndFroingObjectProcessor(std::shared_ptr<EmuMover>)’:
MoverProcessor.cpp:326:46: error: call of overloaded ‘abs(float)’ is ambiguous
  if (abs(num_fractions - mover->GetMoveTime()) > 0.001) {
                                              ^
MoverProcessor.cpp:326:46: note: candidates are:
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/stdexcept:39,
                 from /usr/include/c++/4.8/array:38,
                 from /usr/include/c++/4.8/tuple:39,
                 from /usr/include/c++/4.8/bits/stl_map.h:63,
                 from /usr/include/c++/4.8/map:61,
                 from ../common/PacketStructList.h:37,
                 from ../common/Util.h:45,
                 from ../common/Timer.h:34,
                 from MoverProcessor.h:38,
                 from MoverProcessor.cpp:31:
/usr/include/stdlib.h:775:12: note: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^
In file included from /usr/include/c++/4.8/ext/string_conversions.h:41:0,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 from /usr/include/c++/4.8/stdexcept:39,
                 from /usr/include/c++/4.8/array:38,
                 from /usr/include/c++/4.8/tuple:39,
                 from /usr/include/c++/4.8/bits/stl_map.h:63,
                 from /usr/include/c++/4.8/map:61,
                 from ../common/PacketStructList.h:37,
                 from ../common/Util.h:45,
                 from ../common/Timer.h:34,
                 from MoverProcessor.h:38,
                 from MoverProcessor.cpp:31:
/usr/include/c++/4.8/cstdlib:174:3: note: long long int std::abs(long long int)
   abs(long long __x) { return __builtin_llabs (__x); }
   ^
/usr/include/c++/4.8/cstdlib:166:3: note: long int std::abs(long int)
   abs(long __i) { return __builtin_labs(__i); }
   ^
MoverProcessor.cpp: In member function ‘virtual void ToingAndFroingObjectProcessor::DoPhysics()’:
MoverProcessor.cpp:361:8: warning: unused variable ‘fraction’ [-Wunused-variable]
  float fraction = (current_direction == 1 ?
        ^
make: *** [MoverProcessor.o] Error 1
I have to say, I simply adore Volt's function names though Makes me giggle.
Top

User avatar
Blackstorm
Retired
Posts: 354
Joined: Thu Sep 04, 2014 11:11 am
Location: Paris, FRANCE
Contact:
Contact Blackstorm
Website
Re: Linux compile error: rev 1197
  • Quote

Post by Blackstorm » Mon Apr 13, 2015 2:57 am

Corrected.

Missing : #include <algorithm> into the .cpp file ^^
Top

Volt
Retired
Posts: 551
Joined: Thu Jul 03, 2014 1:00 pm
Location: Sweden, Europe
Re: Linux compile error: rev 1197
  • Quote

Post by Volt » Mon Apr 13, 2015 10:42 am

[quote="John Adams"]I have to say, I simply adore Volt's function names though Makes me giggle.[/quote]
Yay you found them. I had great fun coming up with them.

@Blackstorm, thanks!
"Gaze in amazement adventurer"
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Linux”

Jump to
  • Information
  • ↳   Announcements
  • ↳   Dev Chats
  • ↳   Events
  • Community
  • ↳   General Discussions
  • ↳   VGO Team Help Requests
  • ↳   Introductions
  • ↳   Game Features
  • ↳   Wish List
  • ↳   Off-Topic
  • Support
  • ↳   How-To's
  • ↳   General Support
  • ↳   Windows
  • ↳   Linux
  • Bugs
  • ↳   Server Bugs
  • ↳   Server Bugs (Closed)
  • ↳   Content Bugs
  • ↳   Content Bugs (Closed)
  • ↳   Database Bugs
  • ↳   Tools Bugs
  • Board index
  • All times are UTC-07:00
  • Delete cookies
  • Contact us
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD