Home > Back-end >  C program compilation errors, g - Wl, rpath errors
C program compilation errors, g - Wl, rpath errors

Time:11-01

I met an error during the compilation of c + + program, the specific command is
G + + - I/opt/FZP/ortp_v0. 16.3/include/-o rtp2uac rtpworker. CPP XblPipe. CPP rtp2uac. CPP XblIni. CPP main. CPP g711. CPP - L/opt/FZP/ortp_v0. 16.3/lib/- Wl, rpath=/opt/FZP ortp_v0. 16.3/lib/- lortp - lpthread
Including ortp is third library, I have compiled, in the directory/opt/FZP ortp_v0./lib/under 16.3, the command ls can view the link library files in the directory
But display an error/usr/bin/ld: always find rpath=/opt/FZP ortp_v0./lib/16.3: No to the file or directory
Ask what reason is this?

CodePudding user response:

Have not used the g + + compiler, guess, "rpath=/opt/FZP ortp_v0. 16.3/lib/" on the path of writing does not conform to the stipulations of the Windows, but I'm not sure what is written on the path, and other platform is the content of the tip can't find the file or the path, but if you think your writing is appropriate, suggest that change the section ask, after all, here is the CBuilder

CodePudding user response:

- L/opt/FZP/ortp_v0. 16.3/lib not rpath=/opt/FZP ortp_v0. 16.3/lib
  • Related