This is a discussion on gcc linking error within the Coding in General forums, part of the Development/Scripting category; Hi, I was tryign to install svgalib for using graphics in C. Tried to install svgalib. though i followed the ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi,
I was tryign to install svgalib for using graphics in C. Tried to install svgalib. though i followed the instructions for installation correctly to my knowledge, i am getting the following error when i tried to compile a program. gcc sample.c -o sample -lvga.c gives me the following error /usr/bin/ld: cannot find -lvga collect2: ld returned 1 exit status All the header files were installed in /usr/local/includel so used ln /usr/include/vga* -> /usr/local/include/vga* since i was trying to link vga.h. but still it did not work I have used previous gcc -lm to include math.h. any views why this error occurred? |
| Sponsored Links | ||
|
|
|
|||
|
Quote:
|
|
||||
|
Also, you may need to configure file /etc/vga/libvga.config. It is Configuration file for svgalib.
If you don't have root level access then Other config file locations is ~/.svgalibrc i.e. /home/yourname/.svgalibrc. If you need to see examples then they are located in /usr/share/doc/svgalib/examples/ |
|
|||
|
Quote:
that did not work. btw my apologies there is no -lvga.c. i did not use the .c the cc -Wall............ did not work. it still gave the same error. |
|
|||
|
Quote:
|
|
||||
|
Thanks monk it is working now.. at least I'm able to compile program... but this library is not so good... i mean it is not working the way my BC/TC graphics program works. May be I need to configure something.. not sure... any other good graphic library ?
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Library Linking in GCC | newbie-wan | Coding in General | 1 | 10-18-2006 03:28 AM |
| Invalid ICMP type 3 code 3 error to a broadcast -samba error | raj | Linux software | 0 | 07-09-2006 05:38 AM |