LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-29-2008, 12:30 PM   #1
Ace Blackwell
Member
 
Registered: Mar 2004
Location: Kentucky, USA
Distribution: SlamD 12.1 / Slack 12.0 ~ 14.2_64
Posts: 345

Rep: Reputation: 54
gcc Linker options


All,

I'm trying to compile and run a simple hello world program using KDeveloper. The program is a C program. Also I am trying to use SVGALib commands. I no longer get errors for the SVGA commands but I do get a SVGALib can't find /dev/svga is SVGALIB_Helper loaded (or something of this nature) The program compiles with no errors. I only get the SVGA error when I try to execute the program.

So I think I may have an issue with not having lvga loaded. My question is, can anyone tell me where linker options are located in Kdeveloper?

Or if anyone else knows of this issue and knows the I'm looking in the wrong area, please let me know.

One last quick question, is it really necessary to have all the Make, configure, and various other files for a simple Yo World program. I was going to try and run the program from the prompt and there was a boat load of files. I'm guessing Kdeveloper generates them automatically. I've seen less files and setup items from programs a whole lot larger than mine.

Thanks
Ace
 
Old 04-29-2008, 03:52 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If you get the error when running your program, compiling it differently will not help that easily. It seems that the program can't find the library it needs. During compilation it got to the headers, it seems. I'd check if the library is in LD_LIBRARY_PATH.

Second question: you can generate the project in many different ways. Running autoconf and stuff for single file is simply too much, but you can choose a project to use your own custom Makefile (but you need to write it yourself then!). Note that the defaults are quite verbose. You should be able to remove most of the stuff it checks for because they aren't needed by your program. That requires basic knowledge of automake/autoconf, but there are manuals online.

You can also try cmake-based project, for instance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linker error with Gcc thirumalesh Linux - Software 3 09-19-2007 08:40 AM
Linker options in portind from solaris to linux for mapfile support phani@tcs Linux - General 2 10-25-2005 11:49 PM
gcc Linker error - please help! Liche Programming 5 09-26-2005 07:14 AM
the linker is not working (gcc ) abd_bela Ubuntu 1 09-13-2005 03:51 PM
gcc linker question alenD Programming 2 08-01-2005 09:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration