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

[Condor-users] condor_compile



I tried to use the standard universe,and some one has told me that the condor-7.6.3-x86_64_rhap_6.1-updated-unstripped.tar.gz release can do this.
And I write a simple Helloworld like this:

in the source file called a.cpp:
-------------------------------------------
#include<iostream>
using namespace std;
int main(){
        for (int i=0;i<20;i++){
                cout<<i<<": hello world"<<endl;
                sleep(1);
        }
        return 0;
}
-----------------------------------------------
then,I compile it with the command:
condor_compile g++ a.cpp -o a
but I have the result:
------------------------------------------------
LINKING FOR CONDOR : /usr/bin/ld -L/home/yangguang/opt/condor7.6.3/release_dir/lib -Bstatic --eh-frame-hdr --build-id -m elf_x86_64 --hash-style=gnu -o a /home/yangguang/opt/condor7.6.3/release_dir/lib/condor_rt0.o /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtbeginT.o -L/home/yangguang/opt/condor7.6.3/release_dir/lib -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../.. /tmp/ccSoRyCX.o /home/yangguang/opt/condor7.6.3/release_dir/lib/libcondorsyscall.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcondor_z.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libstdc++.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libstdc++.a -lm /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc_eh.a -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c -lcondor_nss_files -lcondor_nss_dns -lcondor_resolv -lcondor_c /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc.a /home/yangguang/opt/condor7.6.3/release_dir/lib/libcomp_libgcc_eh.a /usr/lib/gcc/x86_64-redhat-linux/4.4.4/crtend.o /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../lib64/crtn.o
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status

------------------------------------------------
Could anyone tell me how to overcome it? 
Thank you!