I had been experiencing "undefined reference to" problems in one of the programs I had been writing. I even tried to use the "-l" option when using gcc, but no luck.
My fix? I changed the extension from ".cpp" to ".c". I have no clue why that worked, but it did...
If anyone has an idea how or why that worked, feel free to post.