windows - Mingw C++ Building Dynamic/Static x86/x64 -


so i'm on windows, , i'm wondering how build dll , static library in mingw, , in different architectures x86 , x64. i'm new mingw, not c++. i've been looking around google while , haven't found way yet, reason being because of tutorials find out-of-date.

gnu 'make' file

sources = test.cpp utilities.cpp objects = $(sources:.cpp=.o)  projname = myprogram buildname = $(projname).dll  $(projname) : $(objects)     g++ -o $(buildname) $(objects)  $(objects) :     g++ -c -d test_dynamic $(sources)  clean :     rm $(objects) $(buildname) 

addition information

mingw version: 4.8.1-4

attempts

http://www.mingw.org/wiki/sampledll  -shared unrecognized command. 

okay figured out why wasn't working. sites not out-of-date, mingw was, system using cygwin, don't want. changed 'path' variable direct correct mingw.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -