Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22009

gcc doesn't create a binary file

$
0
0

I'm trying to use a simple Windows API.

But my code doesn't create a binary file when I use 'MessageBoxA'. And it doesn't produce any error message.

If I don't use 'MessageBoxA', the code creates the binary file.

I use gcc version 6.3.0 on Windows 10. Here's my code.

#include <stdio.h>#include <windows.h>int main() {    printf("hello\n");    MessageBoxA( 0, "hello", "aa", 0); // If I subtract this line, it works fine.    return 0;}

+) If there is xxx.exe file that exists in current directory and I command the following command, the command removes the xxx.exe file.

gcc myfile.c -o xxx.exe

Viewing all articles
Browse latest Browse all 22009

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>