Discussion:
Using .o files
(too old to reply)
Tony Xu
2010-06-04 05:43:32 UTC
Permalink
Hi,
I'm having some problems using the Date.o file that's provided. I used
putty to remote on to cpu05.student.math.uwaterloo.ca

I keep getting an error

Date.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status

when I run the command g++ DateTestHarness.o Date.o


My steps were



1. g++ -c DateTestHarness.cpp Date.h
2. g++ DateTestHarness.o Date.o

Does anyone know what's wrong? Any help would be appreciated, thank you!
Tony Xu
2010-06-04 05:55:49 UTC
Permalink
Post by Tony Xu
Hi,
I'm having some problems using the Date.o file that's provided. I used
putty to remote on to cpu05.student.math.uwaterloo.ca
I keep getting an error
Date.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
when I run the command g++ DateTestHarness.o Date.o
My steps were
1. g++ -c DateTestHarness.cpp Date.h
2. g++ DateTestHarness.o Date.o
Does anyone know what's wrong? Any help would be appreciated, thank you!
OO never mind, I figured it out, I was remoting to the solaris servers
instead of the linux servers.

Loading...