Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Mac SDL2(problem configuration)
Mac SDL2 [message #1821589] Sun, 16 February 2020 20:06
bob leponge is currently offline bob lepongeFriend
Messages: 5
Registered: February 2020
Junior Member
Hello,

surely a configuration problem, but I'm lost ..
I have this message;


../source/main.c:15:10: fatal error: 'SDL2_ttf.framework⁩/Headers/SDL_ttf.h' file not found
#include <SDL2_ttf.framework<U+2069>/Headers/SDL_ttf.h>


#include <SDL2/SDL.h>
#include <stdlib.h>
#include <stdio.h>
#include <OpenGL/gl3.h>
#include <SDL2_image.framework/Headers/SDL_image.h>
#include <SDL2_ttf.framework⁩/Headers/SDL_ttf.h>

int main(int argc, char** argv)
{
    /*SDL_Surface * ws = NULL;*/
    TTF_Font  *fonts;


    SDL_Surface * is = NULL,*texte = NULL;
    SDL_DisplayMode dpm;
    SDL_GetDesktopDisplayMode(0, &dpm);
    SDL_Renderer *renderer = NULL;

    SDL_Color ct ={ 255, 255, 255, 255 };
    SDL_Rect pt;

    int quit = 0;

    TTF_Init();



    if (TTF_Init() != 0){
        SDL_Quit();
        return 1;
    }
   fonts = TTF_OpenFont("Arial.ttf",15);

    SDL_Event event;IMG_Init(IMG_INIT_PNG);

http://010.free.fr/eclipse/ec1
http://010.free.fr/eclipse/ec2
http://010.free.fr/eclipse/ec3
Previous Topic:Make link configurations global for every project
Next Topic:Trouble moving code from CodeBlocks to Eclipse
Goto Forum:
  


Current Time: Mon Aug 15 19:27:54 GMT 2022

Powered by FUDForum. Page generated in 0.02125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top