I have a piece of code that is part of a larger project, and it compiles in Windows just fine (using SSH Secure Shell Client). When I try to compile it in linux, it doesn't work. I get "[duong@node0 3D]$ icc -o DEM DEMsim_3D.cpp -lm -O2
.text+0xdb11): undefined reference to `operator*(double, Vector3D)'
.text+0xdb2d): undefined reference to `Vector3D:
In the universities linux environment (either CentOS or RedHat--going to command line from SSH Secure File Transfer Client), it compiles fine, but segment faults when the sort is trying to run (once again back to the overload operator of the Point and Vector class).
I have my source files for the Point nad Vector class here (http://www.mediafire.com/?lso6nijbco51o5g
Anyone have any idea?
Thank you very much!