Thread: how use Graphics.h on CodeBlocks?

  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    451

    how use Graphics.h on CodeBlocks?

    how use Graphics.h on CodeBlocks?
    i have the library and 2 headers files.
    i add lib file on linker files and i add:
    "-lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32"
    on linker options.
    but i get an error:
    "ld.exe||cannot find -lbgi|"
    what i'm doing wrong?
    is the library file compatible or something?

  2. #2
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    A little inaccuracy saves tons of explanation. - H.H. Munro

  3. #3
    Registered User
    Join Date
    Aug 2013
    Posts
    451
    if was that way on codeblocks 20.03, now was working
    is because my CodeBlocks is 64 bits?
    Last edited by joaquim; 11-10-2023 at 04:36 PM.

  4. #4
    Registered User
    Join Date
    Aug 2013
    Posts
    451
    after several time, i found the problems:
    1 - the library and the headers files are for Code Blocks 32 bits and not 64 bits;
    2 - the files are for "CodeBlocks\MinGW\i686-w64-mingw32\..." and not "CodeBlocks\MinGW\..." folder!!!
    the rest is the same(add the library on project and the linker options).
    thanks for all

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-15-2020, 06:58 PM
  2. Need help with codeblocks
    By SilverClif in forum Windows Programming
    Replies: 6
    Last Post: 05-24-2011, 05:12 AM
  3. using codeblocks
    By torquemada in forum Tech Board
    Replies: 7
    Last Post: 04-20-2011, 08:57 PM
  4. Roulette in Codeblocks 10.5
    By Parid in forum C Programming
    Replies: 11
    Last Post: 12-19-2010, 01:53 PM
  5. Codeblocks.
    By Kitt3n in forum C++ Programming
    Replies: 5
    Last Post: 05-16-2010, 01:50 PM

Tags for this Thread