You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::Init()':
/home/jp/norm/build/../examples/normCast.cpp:314: undefined reference to 'NormPostProcessor::Create()'
/usr/bin/ld: /home/jp/norm/build/../examples/normCast.cpp:319: undefined reference to 'NormPostProcessor::Create()'
/usr/bin/ld: /home/jp/norm/build/../examples/normCast.cpp:324: undefined reference to 'NormPostProcessor::Create()'
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::SetPostProcessorCommand(char const*)':
/home/jp/norm/build/../examples/normCast.cpp:183: undefined reference to 'NormPostProcessor::SetCommand(char const*)'
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::SetSentProcessorCommand(char const*)':
/home/jp/norm/build/../examples/normCast.cpp:185: undefined reference to 'NormPostProcessor::SetCommand(char const*)'
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::SetPurgedProcessorCommand(char const*)':
/home/jp/norm/build/../examples/normCast.cpp:187: undefined reference to 'NormPostProcessor::SetCommand(char const*)'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered:
I just. committed an update to the NORM code that should address this. The issue was the normCast build as part of the "examples" set was not including the platform-specific NormPostProcessor subclass code (e.g., unixPostProcess.cpp) as part of the build. With the change made, I was able to successfully use the build command you gave.
Using waf to build those two examples gives undefined reference errors to Create methods for ProtoDetour and NormPostProcesor.
Other examples compiled without issue. I didn't see anything obviously missing with the ProtoDetour or NormPostProcessor classes.
~/norm$ python3 waf --targets=detourExample,normCast -v
Waf: Entering directory '/home/jp/norm/build'
[58/60] Linking build/protolib/detourExample
14:06:17 runner ['/usr/bin/g++', 'protolib/examples/detourExample.cpp.5.o', '-o/home/jp/norm/build/protolib/detourExample', '-Wl,-Bstatic', '-Lprotolib', '-lprotokit', '-Wl,-Bdynamic', '-lpthread']
[60/60] Linking build/normCast
14:06:17 runner ['/usr/bin/g++', 'examples/normCast.cpp.16.o', '-o/home/jp/norm/build/normCast', '-Wl,-Bstatic', '-L.', '-Lprotolib', '-lnorm', '-lprotokit', '-Wl,-Bdynamic', '-lpthread']
/usr/bin/ld: protolib/examples/detourExample.cpp.5.o: in function 'DetourExample::OnStartup(int, char const* const*)':
/home/jp/norm/build/../protolib/examples/detourExample.cpp:116: undefined reference to 'ProtoDetour::Create()'
collect2: error: ld returned 1 exit status
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::Init()':
/home/jp/norm/build/../examples/normCast.cpp:314: undefined reference to 'NormPostProcessor::Create()'
/usr/bin/ld: /home/jp/norm/build/../examples/normCast.cpp:319: undefined reference to 'NormPostProcessor::Create()'
/usr/bin/ld: /home/jp/norm/build/../examples/normCast.cpp:324: undefined reference to 'NormPostProcessor::Create()'
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::SetPostProcessorCommand(char const*)':
/home/jp/norm/build/../examples/normCast.cpp:183: undefined reference to 'NormPostProcessor::SetCommand(char const*)'
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::SetSentProcessorCommand(char const*)':
/home/jp/norm/build/../examples/normCast.cpp:185: undefined reference to 'NormPostProcessor::SetCommand(char const*)'
/usr/bin/ld: examples/normCast.cpp.16.o: in function 'NormCaster::SetPurgedProcessorCommand(char const*)':
/home/jp/norm/build/../examples/normCast.cpp:187: undefined reference to 'NormPostProcessor::SetCommand(char const*)'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: