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

Author Topic: dub tutorial - compile error..  (Read 7806 times)

0 Members and 1 Guest are viewing this topic.

XKY

  • Newbie
  • *
  • Posts: 3
    • View Profile
dub tutorial - compile error..
« on: February 16, 2014, 09:20:57 am »
Hello!

When i did this tutorial(https://github.com/Jebbs/DSFML/wiki/Building-Your-First-DSFML-Program%28DUB%29), i got some errors.

Quote
/home/xky/project/D/SFML//libdsfml-graphics.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >::seekg(long, std::_Ios_Seekdir)'
/home/xky/project/D/SFML//libdsfml-graphics.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)'
/home/xky/project/D/SFML//libdsfml-graphics.so: undefined reference to `clock_gettime@GLIBC_2.17'
collect2: ld returned 1 exit status
--- errorlevel 1
Error: Link command failed with exit code 1

and package.json is here.
Quote
{
   "name": "dsfml-test",
   "description": "A minimal D application.",
   "copyright": "Copyright © 2014, xky",
   "authors": ["xky"],
   "lflags" : ["-L/home/xky/project/D/SFML/"],
   "dependencies": {
      "dsfml:graphics": "~master",
   }
}

I used Xubuntu12 x86.. Did I make a mistake?

Thanks.
« Last Edit: February 16, 2014, 09:33:33 am by XKY »

Jebbs

  • Sr. Member
  • ****
  • Posts: 358
  • DSFML Developer
    • View Profile
    • Email
Re: dub tutorial - compile error..
« Reply #1 on: February 16, 2014, 08:26:42 pm »
Hi there!

It looks like there might be an issue or two with the 32bit pre-built binaries I put up. Try building from scratch, or wait a couple of days for me to get some newer ones while I get back into the groove of working on the library again.

DSFML - SFML for the D Programming Language.

XKY

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: dub tutorial - compile error..
« Reply #2 on: February 20, 2014, 08:13:02 am »
Hi there!

It looks like there might be an issue or two with the 32bit pre-built binaries I put up. Try building from scratch, or wait a couple of days for me to get some newer ones while I get back into the groove of working on the library again.



Thanks for answer! I will try compile it. :)

Regards,