When I compile my program, I get an error message like this: “undefined reference to sqrt\” (or exp, or something else). How do I fix it?
When you see an error message that says “undefined reference”, it means that you’re using library functions that you didn’t tell it to link with, even though you told it what .h files to use. For this course, you shouldn’t have to worry about the details of doing this, so here’s how to handle the problem. First, be sure you’re compiling on gauss. If you’re compiling on gauss and are having trouble, it is likely because you don’t have the correct aliases set up (don’t worry too much about what that means). The short-term solutions is to type the following in the terminal window where you are trying to compile.
Related Questions
- I have entered my MVP ID and email address that the MVP Award Program uses to contact me but I still get an error message when signing in to the registration site. What do I do?
- Why am I getting the following error message when more than one user on a network tries to access a program: Program is already in use by another user. Access denied.?
- When starting the PAC, the error message RPC Program Mismatch appears. What does this mean?