Hi,
For my CS course, we have a C++ program that we must alter to add additional functionality.
During lab, we work on Linux and Sun systems (compiling the program on each, as needed).
I downloaded my source files from the Sun machine to my Mac, running OS X 10.4.7, with all developer tools installed.
I don't have any executables or object files from the Sun machine, only .cpp and .h source files (and 1 .txt data file).
I can compile everything without error, but when running the program, the main function (plot) gets thrown into what seems to be an infinite loop.
I cannot understand why it would compile and run on the Linux and Sun machines, but not on OS X
There are 4 files being used:
- project1A.cpp: the main routine
- signal.cpp: additional functions (such as plot)
- signal.h
- data1.txt: text file with the data being processed.
Could anyone try compiling the code and/or looking at it to see what's up?
Once the program is running, type 'read data1.txt' to read the data, then run the command 'plot' to see the plot (this is where the error happens).
I've attached a zip file with all the souce and data files.
Any help offered is MUCH appreciated!
Thanks in advance.
For my CS course, we have a C++ program that we must alter to add additional functionality.
During lab, we work on Linux and Sun systems (compiling the program on each, as needed).
I downloaded my source files from the Sun machine to my Mac, running OS X 10.4.7, with all developer tools installed.
I don't have any executables or object files from the Sun machine, only .cpp and .h source files (and 1 .txt data file).
I can compile everything without error, but when running the program, the main function (plot) gets thrown into what seems to be an infinite loop.
I cannot understand why it would compile and run on the Linux and Sun machines, but not on OS X
There are 4 files being used:
- project1A.cpp: the main routine
- signal.cpp: additional functions (such as plot)
- signal.h
- data1.txt: text file with the data being processed.
Could anyone try compiling the code and/or looking at it to see what's up?
Once the program is running, type 'read data1.txt' to read the data, then run the command 'plot' to see the plot (this is where the error happens).
I've attached a zip file with all the souce and data files.
Any help offered is MUCH appreciated!
Thanks in advance.