• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Linker error] undefined reference to `boost::system::get_system_category()' Halp?

squalor

New Member
Joined
Sep 26, 2007
Messages
76
Reaction score
0
[Linker error] undefined reference to `boost::system::get_system_category()'
[Linker error] undefined reference to `boost::system::get_posix_category()'

Just constantly repeating that when i compile.

Compiler:
-D__EXCEPTION_TRACER__
-D__USE_MYSQL__

Linkers:
-llibxml2
-llua
-llibmysql
-llualib
-lwsock32
-lregex
-lgmp
-s
-Wl,-Map=otserv.map
-lmysql
-lws2_32
-lluasql-mysql
-lboost-system-mgw-1_34_1
-lboost-regex-mgw-1_34_1

Halp?
 
i want Build code on QTcreator or dev but when i build it error boost:
**/boost_1_42_0/boost/system/error_code.hpp:208: undefined reference to `boost::system::get_system_category()'**
this is my project: QTBoost_Simple.rar
Code:
#include <boost/filesystem/operations.hpp>
#include <iostream>
namespace fs = boost::filesystem;
int main( int argc, char* argv[] )
{
  if ( argc != 2 )
  {
    std::cout << "Usage: file_size path\n";
    return 1;
  }
  std::cout << "sizeof(intmax_t) is " << sizeof(boost::intmax_t) << '\n';
  fs::path p( argv[1], fs::native );

  if ( !fs::exists( p ) )
  {
    std::cout << "not found: " << argv[1] << std::endl;
    return 1;
  }
  if ( !fs::is_regular( p ) )
  {
    std::cout << "not a regular file: " << argv[1] << std::endl;
    return 1;
  }
  std::cout << "size of " << argv[1] << " is " << fs::file_size( p )
    << std::endl;
  return 0;
}
i try linker -lboost_system link you but error
 
Back
Top