- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;
}
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wd10006") before add_executable in your CMakeLists.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Microsoft compiler doesn't have this issue, so I'm escalating your problem to our engineering team.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page