+ 1

How to compile a C program in code blocks?

when I tried to compile my C program in codeblocks it shows error: (cannot find -lbgi) and (1d return 1 exit status)...somebody please tell me quickly how to fix this?

28th Mar 2017, 10:17 AM
Avrl Sngh
Avrl Sngh - avatar
2 Respuestas
+ 2
no I got it...because some time before I changed the linker settings from compiler menu in which I added an unnecessary library called lbbgi.a and some text in the right pane.That's why the problem is occurring, but when I change it to default all goes good
28th Mar 2017, 4:37 PM
Avrl Sngh
Avrl Sngh - avatar
+ 1
it is telling you that there is an error in the code. It looks like you have asked it to #include a library called lbgi which code blocks can not find. I fyou are using code from another source and trying to run it in codeBlocks you need to brint that library or source file, usually something ending with .h with it.
28th Mar 2017, 2:24 PM
Jason Hoffman
Jason Hoffman - avatar