C++ How to compile dll in a .exe

2019-01-19 15:55发布

I am creating a c++ program, but I want to be able to offer just a .exe file to the user. However, I am using libraries (curl among others) which have some dll's. Is it possible to compile these dll's into the .exe file?

I use Code::Blocks and mingw.

7条回答
Summer. ? 凉城
2楼-- · 2019-01-19 16:53

I came across dll2lib utility once. Interesting piece, though pricey one. It allows you to convert virtually any dll to a static library, which may be later linked with your application to produce solid exe. IIRC, free version will show certain notification (MessageBox) upon entering a function from such generated library.

查看更多
登录 后发表回答