• Advertisement
Sign in to follow this  

Cairo & SDL Include / Lib problems ;/

This topic is 2036 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello just ran into a problem I don't understand why it is happening?

I'm trying to use cairo with sdl obviously but having issues with the functions that I'm so posed to use mainly because the header / cpp file naming "cairosdl.h" and "cairosdl.c" are full of errors when included in my main.cpp file so I was hoping someone could tell me what these errors mean to help in my quest of fixing this problem thank you ! I don't really understand them.

here is a pastebin too the cmd shell error outputs -> http://pastebin.com/vEuJNfYs

and here are the functions I used below

cairo_surface_t *cairosurf = cairo_image_surface_create_for_data (
static_cast<unsigned char *>(sdlsurf->pixels),

cairo_t *cr = cairosdl_create(sdlsurf);

cairo_set_source_rgba(cr, 1,1,0,0.5);

cairo_rectangle(cr, 25,25,50,50);


cairo_select_font_face (cr, "serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 32.0);
cairo_set_source_rgb (cr, 0.0, 0.0, 1.0);
cairo_move_to (cr, 10.0, 50.0);
cairo_show_text(cr,"Hello, world");
Edited by DarkHorseKnight

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement