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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - joelwilliamson

Pages: [1]
1
Window / Re: sfml-window interfering with fopen
« on: August 01, 2012, 07:36:26 pm »
Its also happening with chmod() and open() in both read-only and write-only modes. My OpenGL drivers are working fine: glxgears runs at 60 FPS. Does SFML run fine with Mesa drivers?

2
Window / sfml-window interfering with fopen
« on: August 01, 2012, 04:53:18 am »
I'm using SFML 1.6 on Fedora 17.

#include <stdio.h>
#include <errno.h>
#include <error.h>

int main(int argc, char* argv[])
{
   
    FILE *fp = fopen("./simple_vertex.glsl","r");
    if (errno)
    {
        error(1,errno,"File failed to open");
    }
   
    return 0;
}

compiles and runs fine when compiled with g++ -lsfml-system fopen_error_test.cpp -o fopen_error_test && ./fopen_error_test. If I compile with g++ -lsfml-system -lsfml-window fopen_error_test.cpp -o fopen_error_test && ./fopen_error_test, I get "./fopen_error_test: File failed to open: Resource temporarily unavailable".

Any idea what could be causing this?

Pages: [1]