GithubHelp home page GithubHelp logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Same error here.

Original comment by [email protected] on 8 Aug 2008 at 3:20

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
[deleted comment]

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
#define _GNU_SOURCE

add above line to head of screen.cpp and recompile.

Original comment by [email protected] on 9 Aug 2008 at 1:40

  • Changed state: Accepted

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
still same error after apply  '#define _GNU_SOURCE'


make[3]: Entering directory `/home/mat/Programming/TarBall/fbterm-1.0/src'
g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -fno-exceptions -Ilib
-I/usr/include/freetype2     -MT screen.o -MD -MP -MF .deps/screen.Tpo -c -o 
screen.o
screen.cpp
screen.cpp:64:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
screen.cpp: In static member function ‘static Screen* 
Screen::createInstance()’:
screen.cpp:84: error: ‘O_CLOEXEC’ was not declared in this scope
make[3]: *** [screen.o] Error 1
make[3]: Leaving directory `/home/mat/Programming/TarBall/fbterm-1.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mat/Programming/TarBall/fbterm-1.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mat/Programming/TarBall/fbterm-1.0'
make: *** [all] Error 2

Original comment by MatLinuxer2 on 9 Aug 2008 at 2:21

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
"screen.cpp:64:1: warning: "_GNU_SOURCE" redefined"

add that line before any "#include" lines, not after them.

Original comment by [email protected] on 10 Aug 2008 at 2:02

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Tried putting that line before the #include lines but I still get the same 
redefined
errors as above. Are you actually testing this stuff on Linux distros at all?

Original comment by [email protected] on 10 Aug 2008 at 3:50

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
g++ -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -fno-exceptions -Ilib -I/usr/
include/freetype2 -MT screen.o -MD -MP -MF .deps/screen.Tpo -c -o screen.o 
screen.cpp


enter fbterm-1.0/src directory, copy above text to terminal and compile 
screen.cpp 
manually.

Original comment by [email protected] on 11 Aug 2008 at 2:03

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
[deleted comment]

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
If you still get error on above step, download attched file and replace the old 
screen.cpp

Original comment by [email protected] on 11 Aug 2008 at 2:11

Attachments:

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024
Compilation with the attached file worked. Thanks.

Original comment by [email protected] on 11 Aug 2008 at 1:52

from fbterm.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 26, 2024

Original comment by [email protected] on 9 Sep 2008 at 1:52

  • Changed state: Verified

from fbterm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.