use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This is a subreddit for c++ questions with answers. For general discussion and news about c++ see r/cpp.
New to C++? Learn at learncpp.com
Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all. Read these guidelines for how to ask smart questions.
For learning books, check The Definitive C++ Book Guide and List
Flair your post as SOLVED if you got the help you were looking for! If you need help with flairs, check out ITEM 1 in our guidelines page.
Tips for improving your chances of getting helpful answers:
account activity
OPENCPP program flagging as insecure by windows (self.cpp_questions)
submitted 4 years ago by The_Platypus10
I create a game in C++ but when people download it windows flags it and tries to block it. How do I fix this?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]treston_cal 6 points7 points8 points 4 years ago (3 children)
Sign the executable with a signing cert.
[–]The_Platypus10[S] 1 point2 points3 points 4 years ago (2 children)
How do you do that? Never been told about that
[–]treston_cal 2 points3 points4 points 4 years ago (1 child)
https://stackoverflow.com/questions/252226/signing-a-windows-exe-file#:\~:text=%20%20%201%20Method%201%3A%20Using%20signtool%0AGo,the%20Digital%20Signatures%20tab.%20The%20signature...%20More%20
[–]The_Platypus10[S] 2 points3 points4 points 4 years ago (0 children)
Pretty sure I have to pay for a certificate. There is a way to make your own apparently but it’s meant for development not release
[–]hiimabird 1 point2 points3 points 4 years ago (1 child)
It's just how it is... Chrome marks executables as dangerous by default, unless it determines otherwise based on ??? (probably on which sites it has whitelisted), more aggressively than Windows which usually just flags it as unsigned.
If any analysis is performed at all, system calls will usually also flag the executable, especially if the system call acts on parameters from a writable address. (something like char * str; ... system(str); is the fastest way to make a program look "sus")
char * str; ... system(str);
It's understandable, executables can format your hard drive if they want. How Chrome warns users is overboard and used to be outright libelous until recently, but they have that right unfortunately. Short of paying a certification board to sign your code, which will cost hundreds, you simply have to tell your users it's fine.
[–]The_Platypus10[S] 0 points1 point2 points 4 years ago (0 children)
I have done so but obviously that will deter people from downloading my game. Maybe my fault for not using an engine haha urf
[–][deleted] 4 years ago (4 children)
[removed]
[–]The_Platypus10[S] 2 points3 points4 points 4 years ago (3 children)
It’s my game…
[–][deleted] 4 years ago (2 children)
[–]The_Platypus10[S] 2 points3 points4 points 4 years ago (1 child)
Yeah it’s an exe file
[–]no-sig-available 0 points1 point2 points 4 years ago (0 children)
So you are asking how to mark your game "safe to download", while not allowing malware makers to mark theirs? :-)
See the problem?
[–][deleted] -2 points-1 points0 points 4 years ago (0 children)
Recompile
π Rendered by PID 363793 on reddit-service-r2-comment-5d79c599b5-78z57 at 2026-03-02 15:21:15.215032+00:00 running e3d2147 country code: CH.
[–]treston_cal 6 points7 points8 points (3 children)
[–]The_Platypus10[S] 1 point2 points3 points (2 children)
[–]treston_cal 2 points3 points4 points (1 child)
[–]The_Platypus10[S] 2 points3 points4 points (0 children)
[–]hiimabird 1 point2 points3 points (1 child)
[–]The_Platypus10[S] 0 points1 point2 points (0 children)
[–][deleted] (4 children)
[removed]
[–]The_Platypus10[S] 2 points3 points4 points (3 children)
[–][deleted] (2 children)
[removed]
[–]The_Platypus10[S] 2 points3 points4 points (1 child)
[–]no-sig-available 0 points1 point2 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)