[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] condor_compile problem

I've recently run into a very similar problem that I was going to write up. The code compiles and runs just fine under the vanilla universe, but when we try to condor_compile it, we get the "undefined reference to 'main'" error.

- dave

Mark Calleja wrote:

I'm trying to link together some code with Condor's libraries via condor_compile but have run into a problem. The code works perfectly well on its own, but condor_compile fails with:

/Condor/Debian/condor/lib/libcondorzsyscall.a(remote_startup.o): In function `MAIN': /home/condor/execute/dir_8777/userdir/src/condor_syscall_lib/remote_startup.c:485: undefined reference to `main'
collect2: ld returned 1 exit status

What I find strange is that mysterious path: "/home/condor/execute/dir_8777/userdir/src/condor_syscall_lib" which does not exist on my machine. Am I to assume that this is an artefact of Condor's build environment at UWCS? As for a "main" function, it is certainly in the .o files I'm linking together as without the condor_compile directive the code builds cleanly (I'm using g++ v3.4).

Can anyone shed light as to what the problem may be?

Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at either