Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi all,
Thank you for the continued support. I managed to find out what was going on, and embarrassingly admit that I made a mistake in some post-scripts in the makefile of my C files, whereas the makefile for my C++ files was correct. It is curious that the Altera OpenCL SDK does not use the libOpenCL.so and so linking with the -lOpenCL flag is useless, but I guess that just comes with the unfamiliarity as I migrate over to OpenCL development in FPGAs. Now I usually link with>> aocl link-config
-L/opt/altera/14.0/hld/board/terasic/de5net/linux64/lib -L/opt/altera/14.0/hld/host/linux64/lib -lalteracl -ldl -lacl_emulator_kernel_rt -lalterahalmmd -laltera_apb_14_0_mmd -lelf -lrt -lstdc++ and the compilation goes ahead just fine. As I said, the problem was in some silly mistake in some post-script. On the positive side, this counts as an enlightening experience, more or less, haha. Thank you again for the insight, Victor