Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
805 Discussions

Extra colon in compiler output confuses visual studio error list

Tymek1200
Beginner
2,177 Views

Suppose I make a mistake, that intellisense can't see.

Tymek1200_10-1745246275187.png

The compiler throws an error.

Tymek1200_4-1745242646893.png

Unfortunately said error misses a source file (Plik) and has an invalid line (W...). Which forces me to manually search the output window.

Tymek1200_1-1745242356800.png

Here, we can see an extra colon which trips up visual studio. I've confirmed that's the issue by echoing the same error with and without the extra colon. Also I've commented out the orginal source of error so it wouldn't interfere with results.

With extra colon (interestingly no error):

Tymek1200_6-1745243571829.png

Tymek1200_7-1745243926840.png

Without extra colon (file and line works as intended):

Tymek1200_5-1745243365702.png

Tymek1200_8-1745243966329.png

That was a simple example, but in larger projects with warnings this is not a pleasant experience.

Tested on Visual Studio Community 2022 17.13.6 and Intel oneAPI C++ Compiler 2025.1.0

Labels (1)
0 Kudos
3 Replies
Viet_H_Intel
Moderator
2,001 Views

For "error: call to undeclared function 'someFunction'; ISO C99 and later do not support implicit function declarations", you need to have function prototype declaration or compile with -Wno-implicit-function-declaration

0 Kudos
yzh_intel
Moderator
1,783 Views

Hi, I reproduced your issue, but I suspect the issue is from Visual studio, could you try to compile the code in command line ? I couldn't see the extra colon in the screen output. I'm using Microsoft Visual Studio Enterprise 2022 (64-bit) - Version 17.14.2 and Intel® C++ Compiler 2025.1.

Tymek1200
Beginner
1,639 Views

Hello. I had tried to run msbuild and got an error with extra colon present.

msbuild /p:Configuration="TEST"

Tymek1200_4-1750950000463.png

Then I tried to compile the program with the logged command and (surprisingly) the extra colon is not present.

Tymek1200_1-1750949449550.png

When I set up a pre build event (the same I used to echo fake error) to run icx prematurely the extra colon is still not present.

Tymek1200_0-1750956359111.png

That probably means the ClCompile is to blame, but that is just a theory.

Also as a control test I recompiled the project from Visual Studio and the extra colon is still here.

Tymek1200_3-1750949677692.png

0 Kudos
Reply