[cfe-users] Regarding issue with compilation of multiple source files

David Blaikie via cfe-users cfe-users at lists.llvm.org
Mon Jan 29 07:40:49 PST 2018


can you show the actual command & it's exact output? I'm guessing you've
got a -c (or -S, etc) in there somewhere, perhaps?

On Wed, Jan 24, 2018 at 12:08 AM Sameer Joshi via cfe-users <
cfe-users at lists.llvm.org> wrote:

> Hi,
>
> I am compiling multiple source files and trying to generate one executable
> out of it and getting following error:
>
> "cannot specify -o when generating multiple output files"
>
> The command is like following:
>
> $ clang++ exec_1.bin 1.cpp 2.cpp. 3.cpp
>
> Please let me know how to solve this issue.
>
> Regards,
>
> Sameer Joshi
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20180129/372a2d07/attachment.html>


More information about the cfe-users mailing list