Hello,
I am setting my build environment on ubuntu 20.xx
Always linking fails with the following asterisk expression in command, *.o".
For example in "Code --> External Build --> Link Command", 'gcc "*.o" -o "output".
If I directly use the commands from "export build", there is no error.
How can I handle this?
FYI, the original macro and error are as follows:
External Build Macro (C++ Link Macro) :
"$(ToolChainDir)/arm-none-eabi-gcc" -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wl,--gc-sections -Wl,-static -Wl,-n -g -nostdlib -o "$(SolutionDir)/output/linker/$(SolutionName)_fw2.elf" "$(SolutionDir)/output/compiler/*.o" "$(SolutionDir)/../../lib/dwm.o" "$(SolutionDir)/../../lib/libdwm.a" -nostartfiles -L "$(SolutionDir)/../../lib" -Wl,-Map,"$(SolutionDir)/output/linker/$(SolutionName)_fw2.map" -T "$(SolutionDir)/../../lib/target_s132_fw2.ld" -lm -lgcc -lc -lnosys
==> "$(SolutionDir)/output/compiler/*.o" --> this causes the error.
Error :
Linking 'dwm-api-test_fw2.elf' (1 error)
/home/test/workspace/dwm/examples/dwm-api-test/output/compiler/*.o: No such file or directory
Build Failed
** additional question
Where can I set $(Objects) variable?
Please help me
I am setting my build environment on ubuntu 20.xx
Always linking fails with the following asterisk expression in command, *.o".
For example in "Code --> External Build --> Link Command", 'gcc "*.o" -o "output".
If I directly use the commands from "export build", there is no error.
How can I handle this?
FYI, the original macro and error are as follows:
External Build Macro (C++ Link Macro) :
"$(ToolChainDir)/arm-none-eabi-gcc" -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wl,--gc-sections -Wl,-static -Wl,-n -g -nostdlib -o "$(SolutionDir)/output/linker/$(SolutionName)_fw2.elf" "$(SolutionDir)/output/compiler/*.o" "$(SolutionDir)/../../lib/dwm.o" "$(SolutionDir)/../../lib/libdwm.a" -nostartfiles -L "$(SolutionDir)/../../lib" -Wl,-Map,"$(SolutionDir)/output/linker/$(SolutionName)_fw2.map" -T "$(SolutionDir)/../../lib/target_s132_fw2.ld" -lm -lgcc -lc -lnosys
==> "$(SolutionDir)/output/compiler/*.o" --> this causes the error.
Error :
Linking 'dwm-api-test_fw2.elf' (1 error)
/home/test/workspace/dwm/examples/dwm-api-test/output/compiler/*.o: No such file or directory
Build Failed
** additional question
Where can I set $(Objects) variable?
Please help me
The post was edited 1 time, last by khhan0703 ().