Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

cygwin

Name: Anonymous 2012-08-16 12:54

Hi nerds,
I'm running cygwin and need to link "*.o"-Files but it isn't working well:

>g++ CG.cpp matrix.cpp cputime.o -o CG.exe -O2
>cputime.o: file not recognized: File format not recognized

What am i doing wrong? (despite of programming under Windows)

Name: Anonymous 2012-08-16 13:06

Build with VC++

Name: Anonymous 2012-08-16 13:29

How did you build the .o?

Name: Anonymous 2012-08-16 13:57

>>3
I don't build the ".o". It was on a class homepage for things we need to integrate in our programms.

Name: Anonymous 2012-08-16 14:25

GNU/Turd instead

Name: Anonymous 2012-08-16 15:16

>>4
Then you're fscked. Cygwin isn't used for linking ELF object files. It just provides a POSIX-esque shell with some utilities lacking on Windows. The shit you build with it is still in the Windows format.

Name: Anonymous 2012-08-16 15:53

RTFM http://www.freebsd.org/cgi/man.cgi?query=gcc&sektion=1 and use Visual Sepples next time

Name: Anonymous 2012-08-16 16:37

>>7
Please read the thread before posting nonsense.

Name: Anonymous 2012-08-16 18:59

>>4
file cputime.o
This will undoubtedly tell you that it's an i386 ELF (Executable and Linkable Format) object file, but since you're on Windows you want PE (Portable Executable) object files. Either use actual linux/bsd/whatever on a compatible processor, or tell your professor to cease being a retard and just give out the source so everyone can play; even those on SUPERIOR MIPS laptops.

Name: Anonymous 2012-08-16 19:43

Doesn't the Microsoft POSIX layer (I forgot/don't care what it's called this week) use ELF?

>>9
Those MIPS laptops have special CPU instructions for emulating x86 at near-native speed.

Name: Anonymous 2012-08-16 23:03

>>9
Well, yes:
>cputime.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
There are different types of object files? Oh boy, that's confusing.

Name: Anonymous 2012-08-16 23:26

I prefer puTTy

Don't change these.
Name: Email:
Entire Thread Thread List