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

Compile error: Rev 721

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

Moderator: Community Managers

Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
User avatar
John Adams
Retired
Posts: 4581
Joined: Wed Aug 28, 2013 9:40 am
Location: Phoenix, AZ.
Contact:
Contact John Adams
Website
Compile error: Rev 721
  • Quote

Post by John Adams » Wed Oct 22, 2014 4:32 pm

Linux compile does not like the for():

Code: Select all

WorldDatabase.cpp: In member function `bool WorldDatabase::LoadSpawnPlacements(uint32_t)`:WorldDatabase.cpp:1216:63: error: invalid initialization of non-const reference of type `std::__detail::_Node_iterator<std::pair<const unsigned int, SpawnPlacement>, false, false>&` from an rvalue of type `std::unordered_map<unsigned int, SpawnPlacement>::iterator {aka std::__detail::_Node_iterator<std::pair<const unsigned int, SpawnPlacement>, false, false>}`     for (auto &itr = master_spawn_list.spawn_placements.begin(); itr != master_spawn_list.spawn_placements.end();) {                                                               ^make: *** [WorldDatabase.o] Error 1
Something apparently not cool with this:

Code: Select all

for (auto &itr = master_spawn_list.spawn_placements.begin(); itr != master_spawn_list.spawn_placements.end();) { 

FIX: Removed & from itr Committed as Rev 733.
Top


Post Reply
  • Print view
1 post • 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