Jump to content
  • Advertisement
Sign in to follow this  

Cairo & SDL Include / Lib problems ;/

This topic is 2220 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!