Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cc1: error: output filename specified twice #29

Open
xuzheng465 opened this issue Nov 16, 2023 · 0 comments
Open

cc1: error: output filename specified twice #29

xuzheng465 opened this issue Nov 16, 2023 · 0 comments

Comments

@xuzheng465
Copy link

CLion 2023.2.2

CMakeLists.txt

cmake_minimum_required(VERSION 3.17)
get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
string(REPLACE " " "_" PROJECT_NAME ${PROJECT_NAME})
project(${PROJECT_NAME} C)

set(CMAKE_C_STANDARD 11)

file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/*.c")
foreach(file ${files})
    get_filename_component(name ${file} NAME)
    add_executable(${name} ${file})
endforeach ()

I change -fverbose-asm to --fverbose-asm, so I can get the commind line.

Command line: cc -I/Users/xuzheng/CLionProjects/HelloWorldC -o 03_data_types_float -Wno-pedantic -fverbose-asm -xc -o - -E -
Working directory: /Users/xuzheng/CLionProjects/HelloWorldC
Exit code: 1
clang: error: unsupported option '--fverbose-asm'; did you mean '-fverbose-asm'?

Why are there two -o.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant