Code::Blocks Forums

User forums => Help => Topic started by: Code_Blocker on March 23, 2014, 03:15:41 pm

Title: ~ cannot find -lbgi ? ~
Post by: Code_Blocker on March 23, 2014, 03:15:41 pm
How do I set up code::blocks to recognize/fix "cannot find -lbgi" ?

Can someone direct me to the necessary information to be able to set up code::block to be able to use graphics.h ?

-------------- Build: Debug in test-header (compiler: GNU GCC Compiler)---------------

x86_64-w64-mingw32-g++.exe -Wall -fexceptions -g  -c C:\Code-jk\test-header\main.cpp -o obj\Debug\main.o
C:\Code-jk\test-header\main.cpp: In function 'int main()':
C:\Code-jk\test-header\main.cpp:19:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
                                            ^
C:\Code-jk\test-header\main.cpp:18:34: warning: unused variable 'errorcode' [-Wunused-variable]
     int gdriver = DETECT, gmode, errorcode;
                                  ^
x86_64-w64-mingw32-g++.exe  -o bin\Debug\test-header.exe obj\Debug\main.o  -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32 -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32  ..\..\header-BS\libbgi.a C:\header-BS\libbgi.a
c:/tdm-gcc-64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lbgi
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 2 warning(s) (0 minute(s), 0 second(s))
 
Title: Re: ~ cannot find -lbgi ? ~
Post by: stahta01 on March 23, 2014, 05:03:45 pm
How can someone help you; you are NOT able to read and understand the rules!

Please learn what a Compiler is!
Please learn that Code::Blocks is NOT a compiler!
Please learn to post your compiler questions on another site!

Please read at least some these FAQs before posting again on this or any other site.
http://www.catb.org/esr/faqs/smart-questions.html (http://www.catb.org/esr/faqs/smart-questions.html)

Tim S.
Title: Re: ~ cannot find -lbgi ? ~
Post by: Code_Blocker on March 25, 2014, 11:11:15 am
So U guys are incapable to help or refuse to help ?  ???

Do U think that may discourage new comers to learn about the app ?

If the objective is to gain recognition for the app that would be a hindrance to that endeavor.
Title: Re: ~ cannot find -lbgi ? ~
Post by: BlueHazzard on March 25, 2014, 11:51:09 am
you have to understand that we can't help people who refuse to help them self. We can point to a direction, where you can search or find answers, but we can't give you a exact instruction, if it is something basic like your problem. If you find the solution for your program yourself you will understand the game between codeblocks, compiler and linker and this will help you to solve similar problems in the future, and they will come, i can promise, from your own.

so what can you do:
Please learn what a Compiler is!
Please learn that Code::Blocks is NOT a compiler!
Please learn to post your compiler questions on another site!

where can you start:
for ex.: http://www.parashift.com/c++-faq/

where can you search for useful information?
The forum. Questions like this answered are found in "thousands" in the forum. You may have to variate the search words, something like "cannot find -l*"
The C::B Faq and wiki: http://wiki.codeblocks.org/index.php?title=FAQ this is the most useful place for your kind of question...

if you have a concrete question about configuring c::b, what can not be answered with the faq, this forum will help you for sure, also with a detailed instruction

greetings
Title: Re: ~ cannot find -lbgi ? ~
Post by: stahta01 on March 25, 2014, 07:52:40 pm
So U guys are incapable to help or refuse to help ?  ???

Do U think that may discourage new comers to learn about the app ?

If the objective is to gain recognition for the app that would be a hindrance to that endeavor.

The Code::Blocks team app is NOT related to your question.
The compiler is related to your question.

The closest CB is related is "Codeblocks EP" from here http://codeblocks.codecutter.org/ (http://codeblocks.codecutter.org/)
Do NOT expect this site to know about any additions that exists in  "Codeblocks EP"

Quote
The Code::Blocks team are not involved in the production of Code::Blocks EDU-Portable and assume no responsibility for it.

Tim S.