Program wont compile. Mingw error

CodeLite installation/troubleshooting forum
Josh_727
CodeLite Curious
Posts: 1
Joined: Sun Jan 06, 2019 6:06 pm
Genuine User: Yes
IDE Question: C++
Contact:

Program wont compile. Mingw error

Post by Josh_727 » Sun Jan 06, 2019 6:10 pm

I'm following a tutorial from udemy which was going pretty good until codelite started giving me this error. I don't understand, it was working before now it suddenly just stopped and gave me this error...
Toward the bottom this part is highlighted red "mingw32-make.exe: *** [All] Error 2"



C:\Windows\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j8 SHELL=cmd.exe -e -f Makefile
"----------Building project:[ Sample - Release ]----------"
mingw32-make.exe[1]: Entering directory 'C:/Users/open/Documents/CPPWorkspace/Sample'
mingw32-make.exe[1]: Leaving directory 'C:/Users/open/Documents/CPPWorkspace/Sample'
mingw32-make.exe[1]: Entering directory 'C:/Users/open/Documents/CPPWorkspace/Sample'
C:/MinGW/bin/g++.exe -c "C:/Users/open/Documents/CPPWorkspace/Sample/main.cpp" -std=c++14 -Wall -O2 -Wall -DNDEBUG -o ./Release/main.cpp.o -I. -I.
In file included from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cstdio:42:0,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ext\string_conversions.h:43,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\basic_string.h:5402,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\string:52,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\locale_classes.h:40,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\ios_base.h:41,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:42,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from C:/Users/open/Documents/CPPWorkspace/Sample/main.cpp:3:
c:\mingw\include\stdio.h:788:34: error: '__off64_t' does not name a type
typedef union { __int64 __value; __off64_t __offset; } fpos_t;
^~~~~~~~~
mingw32-make.exe[1]: *** [Release/main.cpp.o] Error 1
mingw32-make.exe: *** [All] Error 2
Sample.mk:97: recipe for target 'Release/main.cpp.o' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/open/Documents/CPPWorkspace/Sample'
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====