Alex
Alex

Reputation: 5904

No DLL dependency Mingw under Netbeans

I'm trying to get back to C++ using Mingw and Netbeans but all released .exe requires some .dll files if ran on another PC.

What should I do to add those library to the released .exe file. [I do not have too much experience in real C++ programming]

Upvotes: 0

Views: 409

Answers (1)

ollo
ollo

Reputation: 25380

Please tell us what dll's are missing. but often you can find them in the bin folder of mingw. If you release your program, put those dll's where your exe is.

Alternative: use static linkage

Edit:

  1. You can get this file from the bin folder of your mingw installation. Copy it to your exe
  2. Compile with linker flags: -static-libstdc++ and -static-libgcc

Upvotes: 1

Related Questions