TensorRT3 undefined reference to 'createInferBuilder_INTERNAL'

My Code :

#include <stdlib.h>
#include <NvInfer.h>

using namespace nvinfer1;

class Logger : public ILogger
void log(Severity severity, const char* msg) override
// suppress info-level messages
if (severity != Severity::kINFO)
std::cout << msg << std::endl;

int main()
IBuilder* builder;
builder = createInferBuilder(gLogger);
return 0;

ERROR Message:

minkyu@minkyu97:~/QTWorkspace/untitled$ make
[ 50%] Building CXX object CMakeFiles/untitled.dir/main.cpp.o
[100%] Linking CXX executable untitled
CMakeFiles/untitled.dir/main.cpp.o: In function nvinfer1::(anonymous namespace)::createInferBuilder(nvinfer1::ILogger&)': main.cpp:(.text+0x19): undefined reference to createInferBuilder_INTERNAL’
collect2: error: ld returned 1 exit status
CMakeFiles/untitled.dir/build.make:94: recipe for target ‘untitled’ failed
make[2]: *** [untitled] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/untitled.dir/all’ failed
make[1]: *** [CMakeFiles/untitled.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2

How can I fix it?

Dear minkyu1501,
I have include your code as a new sample in TRT samples folder on DrivePX2 flashed with 5.0.5a(latest release). It seems there is no issue with code. I am able compile it with out any issues.

I encountered the same problem as you, did you solve it?

Dear 397427018,
Could you please check the issue with our last release for DRIVE PX2. Please check https://developer.nvidia.com/drive/downloads for latest release