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*
614 Discussions

Get a lot of binary output when building with Intel OneApi (2024.0) on windows

MXG
New Contributor I
417 Views

Hi,

 

We get a lot binary output (from linker) when building with Intel OneApi (2024.0) on windows (see attached log file) - cpp file , cmakefile and logfile are attached.

 

Regards,

Morten Gaupaas

 

cpp file:

 

#include <stdio.h>
#include <cstdlib>
#include <chrono>
#include <thread>

using namespace std;

int main() {
    int a = 3;
    int b = 4;
    int c = 5;
    int sum;
    printf ("First number: %d \n",a);
    printf ("Second number: %d \n",b);
    printf ("Third number: %d \n",c);
    sum = a + b + c;
    printf ("Sum %d\n", sum);

    // wait for a bit
    std::chrono::milliseconds wait_time(1000);
    std::this_thread::sleep_for(wait_time);

    printf ("END PROGRAM\n");  
return 0;  
}
0 Kudos
3 Replies
Alex_Y_Intel
Moderator
307 Views

Add set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd10006") before add_executable in your CMakeLists.txt

 

0 Kudos
MXG
New Contributor I
278 Views

Hi,

 

I added this to the cmakelist file:

cmake_minimum_required(VERSION 3.16.3)

project(intel_cpp_test)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd10006")
add_executable ( intel_cpp_test test_compiler.cpp )

 

- but I still get the binary output.

 

Regards Morten

0 Kudos
Alex_Y_Intel
Moderator
254 Views

Microsoft compiler doesn't have this issue, so I'm escalating your problem to our engineering team. 

0 Kudos
Reply