|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
21 Aug 2009, Exaos Lee, Forum, Link error of "mcnaf"
|
21 Aug 2009, Konstantin Olchanski, Forum, Link error of "mcnaf"
|
31 Aug 2009, Exaos Lee, Forum, Link error of "mcnaf"
|
31 Aug 2009, Exaos Lee, Forum, Why should we use "INLINE" here?
|
03 Sep 2009, Stefan Ritt, Forum, Why should we use "INLINE" here?
|
|
Message ID: 619
Entry time: 21 Aug 2009
Reply to this: 620
622
|
Author: |
Exaos Lee |
Topic: |
Forum |
Subject: |
Link error of "mcnaf" |
|
|
The "utils/mcnaf.c" uses "camop()",
180: printf("camop\n");
181: camop();
But "drivers/camac/camacrpc.c" provides "cam_op()":
void cam_op()
{
}
If you compile each source into an object, you may encounter a link error as
mcnaf.c:(.text+0x3b1): undefined reference to `camop'
collect2: ld returned 1 exit status
The "mcstd.h" provides "camop". So, we need to change "camacrpc.c" to match the definition and fix the link error. |