Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.



CppCompileErrorParseErrorAtBOOST_JOIN is a Boost compile error.
Technical facts
Application type(s)
Operating system(s) or programming environment(s)
IDE(s):
Project type:
C++ standard:
Compiler(s):
Libraries used:
Qt: version 5.4.1 (32 bit)
STL: GNU ISO C++ Library, version 4.9.2
Qt project file: ./CppCompileErrorParseErrorAtBOOST_JOIN/CppCompileErrorParseErrorAtBOOST_JOIN.pro
./CppCompileErrorParseErrorAtBOOST_JOIN/main.cpp
./CppCompileErrorParseErrorAtBOOST_JOIN/qtdialog.h
./CppCompileErrorParseErrorAtBOOST_JOIN/qtdialog.cpp
#ifdef _WIN32
//See http://www.richelbilderbeek.nl/CppCompileErrorUnableToFindNumericLiteralOperatorPperatorQ.htm
#if !(__GNUC__ >= 4 && __GNUC_MINOR__ >= 8)
//See http://www.richelbilderbeek.nl/CppCompileErrorSwprintfHasNotBeenDeclared.htm
#undef __STRICT_ANSI__
#endif
#endif
#include "qtdialog.h"
#include "ui_qtdialog.h"
#include <iostream>
#include <string>
#include <vector>
const std::vector<std::string> SeperateString(
const std::string& input,
const char seperator)
{
std::vector<std::string> v;
boost::algorithm::split(v,input,
std::bind2nd(std::equal_to<char>(),seperator),
boost::algorithm::token_compress_on);
return v;
}
QtDialog::QtDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::QtDialog)
{
ui->setupUi(this);
const std::vector<std::string> v = SeperateString("1,2,3,4",',');
BOOST_FOREACH(const std::string s, v) { std::cout << boost::lexical_cast<int>(s) << ','; }
}
QtDialog::~QtDialog()
{
delete ui;
}
|
./CppCompileErrorParseErrorAtBOOST_JOIN/CppCompileErrorParseErrorAtBOOST_JOIN.sh
#!/bin/bash
#From http://richelbilderbeek.nl/CppHelloBoostQtCreatorLubuntuToWindows.htm
echo "Cross compiling to Windows"
myfile="i686-pc-mingw32-qmake"
mytarget="CppCompileErrorParseErrorAtBOOST_JOIN"
myprofile=$mytarget.pro
myexefile=./release/$mytarget.exe
if [ -e $myfile ]
then
echo "MXE crosscompiler '$myfile' found"
else
echo "MXE crosscompiler '$myfile' not found directly, but perhaps it is in the PATH"
#exit
fi
if [ -e $myprofile ]
then
echo "Qt Creator project '$myprofile' found"
else
echo "Qt Creator project '$myprofile' not found"
exit
fi
echo "1/2: Creating Windows makefile"
$myfile $myprofile
if [ -e Makefile ]
then
echo "Makefile created successfully"
else
echo "FAIL: qmake $myprofile"
exit
fi
echo "2/2: making makefile"
make
if [ -e $myexefile ]
then
echo "SUCCESS"
else
echo "FAIL"
fi
#Cleaning up
rm -r debug
rm -r release
rm Makefile
rm Makefile.*
|
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.

This page has been created by the tool CodeToHtml