Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sf::Style::None under Ubuntu(gcc) ..  (Read 4188 times)

0 Members and 1 Guest are viewing this topic.

HeinzK

  • Newbie
  • *
  • Posts: 41
    • View Profile
    • ZwiAner
    • Email
sf::Style::None under Ubuntu(gcc) ..
« on: May 25, 2012, 08:21:04 pm »
deleted
« Last Edit: December 04, 2019, 08:29:34 am by HeinzK »
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sf::Style::None under Ubuntu(gcc) ..
« Reply #1 on: May 25, 2012, 08:24:17 pm »
Quote
Under Ubuntu(gcc) .. error: expected unqualified-id before numeric constant
I need to see what headers you include in this cpp file, and in which order.

Quote
Where is the 'code=cpp''/code'-Button ??
Top-right, "Code" dropdown list.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sf::Style::None under Ubuntu(gcc) ..
« Reply #2 on: May 25, 2012, 09:38:54 pm »
Quote
However, I look, nothing sees ..


Quote
Here are my Includes:
Is that all? No include of other libraries, or you own headers?

[attachment deleted by admin]
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: sf::Style::None under Ubuntu(gcc) ..
« Reply #3 on: May 26, 2012, 08:04:49 am »
Thanks.

SFML must be included before Linux-specific headers, because they define a None macro which conflicts with sf::Style::None.
Laurent Gomila - SFML developer

mateandmetal

  • Full Member
  • ***
  • Posts: 171
  • The bird is the word
    • View Profile
    • my blog
Re: sf::Style::None under Ubuntu(gcc) ..
« Reply #4 on: May 26, 2012, 08:09:27 am »
#include <cstdlib>
#include <cstdarg>
#include <cstdio>
#include <cstring>
#include <climits>
#include <cmath>
#include <ccomplex>
#include <cfloat>

#include <memory.h>
#include <malloc.h>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <algorithm>
#include <functional>
#include <vector>
#include <list>
#include <map>

 :o :o :o :o :o :o
- Mate (beverage) addict
- Heavy metal addict _lml
- SFML 2 addict
- My first (and free) game: BichingISH!

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: sf::Style::None under Ubuntu(gcc) ..
« Reply #5 on: May 26, 2012, 09:54:32 am »
Why do you include the half standard library in a single file? Don't you want to include headers only where you actually need them?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Silvah

  • Guest
Re: sf::Style::None under Ubuntu(gcc) ..
« Reply #6 on: May 26, 2012, 01:41:18 pm »
Why do you include the half standard library in a single file? Don't you want to include headers only where you actually need them?
Presumably because the OP is using precompiled headers.