After installation, ofed library cannot be found

according to the Mellanox_OFED_Linux_User_Manual_v4_5.pdf, I install MLNX_OFED_LINUX-4.5- on my machine(ubuntu 16.04 and connectx-5). I start to run code from RDMA_Aware_Programming_user_manual.pdf. The manual gives compiling commandline “gcc -Wall -I/usr/local/ofed/include -O2 -o RDMA_RC_example -L/usr/local/ofed/lib64 -L/usr/local/ofed/lib -libverbs RDMA_RC_example.c " in page 121. But i cannot find the directory”/usr/local/ofed"


Where did you see that the include path is /usr/local/ofed/include and the library path /usr/local/ofed/lib ? From which manual ?

The include files are installed in /usr/include and libraries in /usr/lib or /usr/lib64

If you specified a different prefix in your configure command line when you compiled the sources of the driver, so you will be able to specify your own directory for include and libs.(–prefix option )