Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1275  / 2 Years ago, fri, december 31, 2021, 12:16:23

I have problems related to C programming on Ubuntu 12.04. While compiling C program consisting pow I faced difficulties. Then I searched the Internet and got the solution with -lm. But that's the compiling part. How to execute and Run that program that has pow in it? I failed to execute and run. The message said No such file or directory. What can I do?



Again, is there any easy way of learning C programming on Ubuntu, where I can fully concentrate on coding? I prefer not to have to think about compiling, executing and running the code. Should I use an IDE for that? What do you say?


More From » programming

 Answers
5

The problem using the function pow is that it's a function from another library, not from the C language. So, you need to link to the math library. But I don't get why you can't run the program. What complete command are you using to compile and what to run?



About using an IDE, I recommend you not to use it while you're learning, or you can miss the understanding of how everything works.


[#35025] Saturday, January 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ormlai

Total Points: 292
Total Questions: 106
Total Answers: 115

Location: Cape Verde
Member since Fri, Sep 16, 2022
2 Years ago
ormlai questions
Wed, Sep 28, 22, 00:17, 2 Years ago
Sun, Aug 7, 22, 22:05, 2 Years ago
Wed, Jun 16, 21, 03:50, 3 Years ago
Sun, Feb 6, 22, 09:11, 2 Years ago
Mon, Jul 12, 21, 10:00, 3 Years ago
;