I'm also having same error.. I think this vga/svga lib is related to display card... not sure but just guess ... if any one got any clue pleaez reply back
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?
well lets see. hope monk or vivek have an answer......Originally Posted by sweta
Look like your command is not correct, try following compile command:Originally Posted by kavi
Let me know if this works on not!Code:cc -Wall -Wstrict-prototypes -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -g -I../include -I../gl -o sample sample.c -lvgagl -lvga
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/
All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]
Hi Monk,Originally Posted by monk
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.
well something seems to be wrong with the installation. Even as root i did not find the folder vga in /etc. and whats more i am searching for .svgalibrc file !!Originally Posted by nixcraft
kavi, look like you don't have svgalib installed...btw you got which distro? If it is debain then use following command to install it:
Code:apt-get install svgalib-bin
i use FC3. perhaps u r right. its not installed well. let me see this weekend. right now got something else to do.
thanx though, will let u know if i work it out.
There are currently 1 users browsing this thread. (0 members and 1 guests)