Bug 453370 - Source file arguments of GCC C++ Linker command isn't escaped properly
Summary: Source file arguments of GCC C++ Linker command isn't escaped properly
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.5   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-27 03:05 EST by V字龍 Vdragon CLA
Modified: 2020-09-04 15:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description V字龍 Vdragon CLA 2014-11-27 03:05:41 EST
Hi, 
it seems that CDT doesn't escape linker command's source file argument and will trigger build errors when the file has not escaped characters(e.g. parenthesis)

```
Building target: 通用軟體專案範本
Invoking: GCC C++ Linker
g++  -o "通用軟體專案範本(Generic Software Project Template)"  ./來源程式碼(Source\ code)/main.o   
/bin/sh: 1: Syntax error: "(" unexpected
make: *** [通用軟體專案範本(Generic Software Project Template)] Error 2
```

There's no issue in the invoked compiler command:

```
Invoking: GCC C++ Compiler
g++ -I"/mnt/1TB_Data/林博仁/工作空間/Programming/Templates/Generic Software Project Template/Library_headers" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"來源程式碼(Source code)/main.d" -MT"來源程式碼(Source\ code)/main.d" -o "來源程式碼(Source code)/main.o" "/mnt/1TB_Data/林博仁/工作空間/Programming/Templates/Generic Software Project Template/Source code/main.cpp"
```

Please fix it, thanks in advance!

V字龍(Vdragon) <Vdragon.Taiwan@gmail.com>