#Building a C Program with mfpr.h Library in Visual Studio

9 messages · Page 1 of 1 (latest)

buoyant wedge
#

I have installed MinGW, MSYS2, mfpr, gmp, and Visual Studio.
I have created a Makefile in my template C repository and configured it to build with the mfpr.h library.

Here are some Configuration Properties for my project:

General > Project Defaults
• Configuration Type | Makefile

VC++ Directories > General
• Include Directories | C:\MSYS2\mingw64\include;$(IncludePath)

NMake > General
• Build Command Line | mingw32-make
• Rebuild All Command Line | mingw32-make clean && mingw32-make
• Clean Command Line | mingw32-make clean

I selected Build > Build Solution, and I was met with this error: The command "mingw32-make" exited with code 2.

I am definitely out of my depth with all this - please advise on some troubleshooting options I can take to solve this issue. Thanks!

mighty rootBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

limber bridge
#

Ooof, VS + MSYS2?

chrome burrow
#

Could you try building it yourself with gcc in the command line?

#

My first instinct would be a bad install, since I feel like I see that issue a lot with mingw and msys2

buoyant wedge
limber bridge
#

Combining visual studio with msys2 is extremely weird

#

Pick a compiler, either msvc or mingw. If msvc, ditch msys2 and install the libraries you want through vcpkg

#

If mingw, ditch visual studio and install the library using pacman