Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile errors for normCast and detourExample examples. #89

Open
jp-nps opened this issue Dec 26, 2024 · 1 comment
Open

Compile errors for normCast and detourExample examples. #89

jp-nps opened this issue Dec 26, 2024 · 1 comment

Comments

@jp-nps
Copy link

jp-nps commented Dec 26, 2024

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

@bebopagogo
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants