Having problems compile.
After installing SDK 3.2 /w default options selected. Fired up Eclipse (Hexagon IDE) and was unable to compile any of the first project samples.
After correcting the Hexagon tools from eclipse properties (qdsp++ compiler, linker, assembler --> hexagon-link, hexagon-clang++, ...)
At the linker seeing these issues, anyone seeing the same? or know the fix?
17:41:19 **** Build of configuration Debug for project factorial ****
make all
'Building file: ../factorial.cpp'
'Invoking: Hexagon C++ Compiler'
hexagon-clang++ -mv5 -D__FILENAME__=__FILE__ -O0 -g3 -Wall -c -fmessage-length=0 -o "factorial.o" "../factorial.cpp"
'Finished building: ../factorial.cpp'
' '
'Building target: factorial'
'Invoking: Hexagon C++ Linker'
hexagon-link ./factorial.o -mv5 -nodefaultlibs -o"factorial"
Warning: Warning: Unrecognized option `-nodefaultlibs'
Error: ./factorial.o(.text+0xb0): undefined reference to `printf'
Error: ./factorial.o(.text+0xc4): undefined reference to `printf'
Error: ./factorial.o(.text+0xf0): undefined reference to `printf'
Error: ./factorial.o(.text+0x12c): undefined reference to `printf'
Error: ./factorial.o(.text.atoi+0x20): undefined reference to `_Stoul'
Fatal: Linking had errors.
make: *** [factorial] Error 1
17:41:22 Build Finished (took 2s.429ms)
Ma I know how the project is created ?
make sure that you created with project type as executable and selected llvm toolchain.
I'm following the go/hexagonsdk instructions to create a sample project
Can you please follow the following page to create first eclipse project
https://github.qualcomm.com/pages/jmay/hexagonsdk/3.3/eclipse_first_proj...
Link doesn't exist, got another one?
you can refer the same document in your installed SDK <SDK_ROOT_DIR>/docs/eclipse_first_project.html
file:///C:/Qualcomm/Hexagon_SDK/3.3.1/docs/eclipse_first_project.html
Ok figured it out - I have to run as Administrator, and its all working (right click the Hexagon IDE link and run as Admin)
Thanks!