Help with gcc programming


 
Thread Tools Search this Thread
Top Forums Programming Help with gcc programming
# 1  
Old 04-13-2016
Help with gcc programming

I need a lot of help with c programming.

I have the source code.

Running configure, I got one error message about a missing library.

I downloaded and successfully compiled it in another dir.

Do I throw all the new files into my source dir and run configure again ?

Thanks.
# 2  
Old 04-13-2016
No. cd to the directory where everything 'configured' correctly.
Read the README file. It may not be spelled just as I spelled it.

And. Next time please be more specific about what you are compiling. If you went to a car repair shop and asked advice then said, "My car doesn't run". You would get lots of questions. Like what make and model, what did you do, etc. UNIX is no different.
I just did not feel like playing 20 questions, so I gave you an answer which is almost as generic as your question.

Usually after configure you run the command (in the directory where configure runs):
make or
make install -= you have to be root to run this last one correctly.

Again, find and read the readme file.
# 3  
Old 04-13-2016
I do not think you understood my post or you are a bit impatient.

My post had plenty of details.

Both directories have configure.

One configure in each directory, one for the library and one for the source code.

Since every directory is not in the path, gcc will not have all it needs to compile the program if it is run within the SOURCE directory.

Have a great evening.
# 4  
Old 05-29-2016
In fairness, you still haven't mentioned what you are compiling, the specific errors you received or the code you are trying to run. Jim mcnamara may have sounded harsh, but its true you are not providing much for anyone to review.

If you simply need to link a library when compiling with gcc, this can be done with the -L flag. You can use it to link to a library stored anywhere on the system. Documention on this can be found at the link below:

https://www.cs.swarthmore.edu/~newha...libraries.html

Hope that sheds some light.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Gcc openmp programming problem

Dear Linux users, I'm a noob at openmp, gcc and c programming. I can run my own openmp code in terminal with no problem, eg. gcc -fopenmp program.c -o program. But now I'm trying to compile and run another person's code, it contains a makefile and multiple .c and .h files. I don't know how to... (2 Replies)
Discussion started by: pigeon151
2 Replies

2. UNIX for Dummies Questions & Answers

From iOS programming to Linux system programming

Hello. I like Linux and C programming language. Allways wanted to understand kernel and become a Linux system programmer. And I also like Objective-C and iOS. These two programming areas have relations: 1. Linux and iOS are UNIX-like systems, POSIX compliant. 2. It is useful to know C language... (2 Replies)
Discussion started by: Rockatansky
2 Replies

3. UNIX for Dummies Questions & Answers

How does unix system administration, unix programming, unix network programming differ?

How does unix system administration, unix programming, unix network programming differ? Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies

4. UNIX for Dummies Questions & Answers

Help with gcc and g++

Hi, I have recently got a job in unix, now training is going on and we have been practicing on telnet, so to practice at home I have installed vmware(virtual machine) and planning to download ubuntu. So my doubt is that whether I can write c and cpp progs in vi editor and can I run them by default... (5 Replies)
Discussion started by: vishal.973s
5 Replies

5. Programming

C Programming - Hardware Programming

Can someone help me on suggesting some ways to access the memory content in RAM directly from C/C++ source code. Please provide me any book name or any URL so that I can get an exhaustive knowledge over it. If possible please give me some tips on interacting with hardwares directly through... (3 Replies)
Discussion started by: nandumishra
3 Replies

6. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

7. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

8. Programming

XWindows programming + gcc linker options

Im trying to compile some code that involves using X-Windows based functions (XDisplayName() and XOpenDisplay() ), however each time I run the compiler, Im getting a problem with the linker. The linker says that both XDisplayName() and XOpenDisplay() are unresolved text symbols. Is there a... (1 Reply)
Discussion started by: JamesGoh
1 Replies

9. Programming

Gcc

Dear all, Any body please guide, i require a C which will run in Linux environment. Its urgent please. warm regards, Senthil K (1 Reply)
Discussion started by: Senthil
1 Replies

10. Programming

c programming or unix programming!?

i would like advice on the usbject of c programming (in the middle of reading a book on C). could i benefit more if i apply that knowledge in the unix format if i were able to, or would that take the point out of learning C, basically I want to stay away from strying too far away from unix and use... (1 Reply)
Discussion started by: moxxx68
1 Replies
Login or Register to Ask a Question