Author Topic: ~ cannot find -lbgi ? ~  (Read 9623 times)

Offline Code_Blocker

  • Multiple posting newcomer
  • *
  • Posts: 10
~ cannot find -lbgi ? ~
« 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))
 

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7090
    • My Best Post
Re: ~ cannot find -lbgi ? ~
« Reply #1 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

Tim S.
« Last Edit: March 23, 2014, 05:45:41 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Code_Blocker

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: ~ cannot find -lbgi ? ~
« Reply #2 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.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2945
Re: ~ cannot find -lbgi ? ~
« Reply #3 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
« Last Edit: March 25, 2014, 11:52:47 am by BlueHazzard »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7090
    • My Best Post
Re: ~ cannot find -lbgi ? ~
« Reply #4 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/
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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org