[Nauty-list] Nauty Link problem again
William Rummler
w.a.rummler at gmail.com
Wed Jan 12 05:07:29 EST 2011
Hi Jiajie,
If you wanted to compile nausparse.c individually, just use gcc's -c flag:
gcc -c nausparse.c
That'll give you an object file named nausparse.o, which is not
executable (and can't be as nausparse.c does not contain a main()
function).
For compiling and linking the example programs, just follow the
directions in the source comments at the top of each example program's
source file. E.g., the comments in nautyex4.c indicate the following:
gcc nautyex4.c nauty.c nautil.c nausparse.c
Hope this helps.
- William
On Mon, Jan 10, 2011 at 7:00 PM, <nauty-list-request at cs.anu.edu.au> wrote:
> Send Nauty-list mailing list submissions to
> nauty-list at cs.anu.edu.au
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://dcsmail.anu.edu.au/cgi-bin/mailman/listinfo/nauty-list
> or, via email, send a message with subject or body 'help' to
> nauty-list-request at cs.anu.edu.au
>
> You can reach the person managing the list at
> nauty-list-owner at cs.anu.edu.au
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Nauty-list digest..."
>
>
> Today's Topics:
>
> 1. Nauty Link problem again (Jiajii Peng)
> 2. Re: Nauty Link problem again (Brendan McKay)
> 3. Re: Nauty Link problem again (jiajie peng)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 10 Jan 2011 02:44:24 -0500
> From: "Jiajii Peng" <jiajiep at gmail.com>
> Subject: [Nauty-list] Nauty Link problem again
> To: <nauty-list at cs.anu.edu.au>
> Message-ID: <049301cbb09a$34920cb0$9db62610$@gmail.com>
> Content-Type: text/plain; charset="iso-2022-jp"
>
> Hello Nauty members?
>
>
>
> Sorry to bother you. I have some details to supplement. We I compile
> nausparse.c. It does not work. Some parts of the mistakes are as follows.
>
> $ gcc nausparse.c
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x61): undefined reference to
> `_alloc_error'
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0xe5): undefined reference to
> `_alloc_error'
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x4df): undefined reference to
> `_alloc_error'
>
>
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x7c4): undefined reference to
> `_alloc_error'
>
>
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0xc6b): undefined reference to
> `_alloc_error'
>
>
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0xccf): more undefined references to
> `_alloc_
>
> error' follow
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x1085): undefined reference to
> `_nextelement
>
> '
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x2805): undefined reference to
> `_alloc_error
>
> '?..
>
> ??.
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x347c): undefined reference to
> `_alloc_error
>
> '
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x34ce): undefined reference to
> `_alloc_error
>
> '
>
> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x38b2): undefined reference to
> `_alloc_error
>
> '
>
> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(libcmain.o):(.text+0x
> a9):
>
> undefined reference to `_WinMain at 16'
>
> collect2: ld returned 1 exit status
>
>
>
> Could someone help me? Thank you!
>
>
>
> Sincerely,
>
> Jiajie
>
>
>
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://dcsmail.anu.edu.au/pipermail/nauty-list/attachments/20110110/92a35c2e/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 10 Jan 2011 22:39:00 +1100
> From: Brendan McKay <bdm at cs.anu.edu.au>
> Subject: Re: [Nauty-list] Nauty Link problem again
> To: Jiajii Peng <jiajiep at gmail.com>
> Cc: nauty-list at cs.anu.edu.au
> Message-ID: <20110110113900.GA27845 at cs.anu.edu.au>
> Content-Type: text/plain; charset=us-ascii
>
>
> nausparse.c is not a program, you can't just compile and link it
> like that. It is only a part of other programs (like dreadnaut.c).
>
> Brendan.
>
>
> * Jiajii Peng <jiajiep at gmail.com> [110110 18:44]:
>> Hello Nauty members?$B!$
>>
>>
>>
>> Sorry to bother you. I have some details to supplement. We I compile
>> nausparse.c. It does not work. Some parts of the mistakes are as follows.
>>
>> $ gcc nausparse.c
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x61): undefined reference to
>> `_alloc_error'
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0xe5): undefined reference to
>> `_alloc_error'
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x4df): undefined reference to
>> `_alloc_error'
>>
>>
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x7c4): undefined reference to
>> `_alloc_error'
>>
>>
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0xc6b): undefined reference to
>> `_alloc_error'
>>
>>
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0xccf): more undefined references to
>> `_alloc_
>>
>> error' follow
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x1085): undefined reference to
>> `_nextelement
>>
>> '
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x2805): undefined reference to
>> `_alloc_error
>>
>> '?$B!D..
>>
>> ?$B!D!D.
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x347c): undefined reference to
>> `_alloc_error
>>
>> '
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x34ce): undefined reference to
>> `_alloc_error
>>
>> '
>>
>> /tmp/cc1PEC9u.o:nausparse.c:(.text+0x38b2): undefined reference to
>> `_alloc_error
>>
>> '
>>
>> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(libcmain.o):(.text+0x
>> a9):
>>
>> undefined reference to `_WinMain at 16'
>>
>> collect2: ld returned 1 exit status
>>
>>
>>
>> Could someone help me? Thank you!
>>
>>
>>
>> Sincerely,
>>
>> Jiajie
>>
>>
>>
>>
>>
>>
>>
>
>> _______________________________________________
>> Nauty-list mailing list
>> Nauty-list at cs.anu.edu.au
>> http://dcsmail.anu.edu.au/cgi-bin/mailman/listinfo/nauty-list
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 10 Jan 2011 10:05:54 -0500
> From: jiajie peng <pengjj at msu.edu>
> Subject: Re: [Nauty-list] Nauty Link problem again
> To: Jiajii Peng <jiajiep at gmail.com>, nauty-list at cs.anu.edu.au,
> bdm at cs.anu.edu.au
> Message-ID:
> <AANLkTi=6s+3ruADZNYWU0WsDKAHLoV6H+h+wnbiXuTgP at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> Thank you for your reply. But I also can not compile the example code after
> installation as I mentioned in last mail. It looks like link problem.
>
> Sincerely, Jiajie
>
> On Mon, Jan 10, 2011 at 6:39 AM, Brendan McKay <bdm at cs.anu.edu.au> wrote:
>
>>
>> nausparse.c is not a program, you can't just compile and link it
>> like that. It is only a part of other programs (like dreadnaut.c).
>>
>> Brendan.
>>
>>
>> * Jiajii Peng <jiajiep at gmail.com> [110110 18:44]:
>> > Hello Nauty members?$B!$
>> >
>> >
>> >
>> > Sorry to bother you. I have some details to supplement. We I compile
>> > nausparse.c. It does not work. Some parts of the mistakes are as
>> follows.
>> >
>> > $ gcc nausparse.c
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x61): undefined reference to
>> > `_alloc_error'
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0xe5): undefined reference to
>> > `_alloc_error'
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x4df): undefined reference to
>> > `_alloc_error'
>> >
>> >
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x7c4): undefined reference to
>> > `_alloc_error'
>> >
>> >
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0xc6b): undefined reference to
>> > `_alloc_error'
>> >
>> >
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0xccf): more undefined references to
>> > `_alloc_
>> >
>> > error' follow
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x1085): undefined reference to
>> > `_nextelement
>> >
>> > '
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x2805): undefined reference to
>> > `_alloc_error
>> >
>> > '?$B!D..
>> >
>> > ?$B!D!D.
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x347c): undefined reference to
>> > `_alloc_error
>> >
>> > '
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x34ce): undefined reference to
>> > `_alloc_error
>> >
>> > '
>> >
>> > /tmp/cc1PEC9u.o:nausparse.c:(.text+0x38b2): undefined reference to
>> > `_alloc_error
>> >
>> > '
>> >
>> >
>> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../libcygwin.a(libcmain.o):(.text+0x
>> > a9):
>> >
>> > undefined reference to `_WinMain at 16'
>> >
>> > collect2: ld returned 1 exit status
>> >
>> >
>> >
>> > Could someone help me? Thank you!
>> >
>> >
>> >
>> > Sincerely,
>> >
>> > Jiajie
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>> > _______________________________________________
>> > Nauty-list mailing list
>> > Nauty-list at cs.anu.edu.au
>> > http://dcsmail.anu.edu.au/cgi-bin/mailman/listinfo/nauty-list
>>
>>
>
>
> --
> Sincerely,
> Jiajie
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://dcsmail.anu.edu.au/pipermail/nauty-list/attachments/20110110/b27d1c04/attachment-0001.htm>
>
> ------------------------------
>
> _______________________________________________
> Nauty-list mailing list
> Nauty-list at cs.anu.edu.au
> http://dcsmail.anu.edu.au/cgi-bin/mailman/listinfo/nauty-list
>
>
> End of Nauty-list Digest, Vol 49, Issue 4
> *****************************************
>
More information about the Nauty
mailing list