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

Author Topic: use soil with sfml  (Read 2663 times)

0 Members and 1 Guest are viewing this topic.

mentaman10

  • Newbie
  • *
  • Posts: 16
    • View Profile
use soil with sfml
« on: December 21, 2011, 12:31:05 pm »
Hey,

How can I use sfml and soil together?
I don't love the sfml texture load because he load 8-bit, I want 32-bit.
but with soil it do some error...

After compile(debug):
Code: [Select]
First-chance exception at 0x77632239 (ntdll.dll) in Game.exe: 0xC0000005: Access violation writing location 0x00000014.
Unhandled exception at 0x77632239 (ntdll.dll) in Game.exe: 0xC0000005: Access violation writing location 0x00000014.


while the build
And all this warnings:
Code: [Select]
1>soil.lib(image_DXT.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'soil.lib(image_DXT.obj)' or at 'C:\Users\Tom\Documents\Visual Studio 2010\Projects\Game\Release\vc100.pdb'; linking object as if no debug info
1>soil.lib(image_helper.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'soil.lib(image_helper.obj)' or at 'C:\Users\Tom\Documents\Visual Studio 2010\Projects\Game\Release\vc100.pdb'; linking object as if no debug info
1>soil.lib(SOIL.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'soil.lib(SOIL.obj)' or at 'C:\Users\Tom\Documents\Visual Studio 2010\Projects\Game\Release\vc100.pdb'; linking object as if no debug info
1>soil.lib(stb_image_aug.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'soil.lib(stb_image_aug.obj)' or at 'C:\Users\Tom\Documents\Visual Studio 2010\Projects\Game\Release\vc100.pdb'; linking object as if no debug info

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
use soil with sfml
« Reply #1 on: December 22, 2011, 05:35:01 am »
32-bit as in 32 bits for R+G+B+A, or 32-bit as in 32 bits for R, 32 bits for G, etc?

BTW, SFML uses SOIL, last I checked.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
use soil with sfml
« Reply #2 on: December 22, 2011, 08:26:14 am »
Quote
First-chance exception at 0x77632239 (ntdll.dll) in Game.exe: 0xC0000005: Access violation writing location 0x00000014.
Unhandled exception at 0x77632239 (ntdll.dll) in Game.exe: 0xC0000005: Access violation writing location 0x00000014.

You're using a null pointer but that's all we can say without seeing your code.

Quote
BTW, SFML uses SOIL, last I checked.

Not SFML 2.
Laurent Gomila - SFML developer