Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with mingw64 gcc #1

Open
Nikolai-Aleksandrovich opened this issue Jan 5, 2021 · 0 comments
Open

Compilation error with mingw64 gcc #1

Nikolai-Aleksandrovich opened this issue Jan 5, 2021 · 0 comments

Comments

@Nikolai-Aleksandrovich
Copy link

when run "g++ -O3 -std=c++11 realtimesimulation.cpp Hungarian.cpp" with MinGW, error will be like:

In file included from carpooling.h:2,
from realtime_simulation.cpp:3:
ioD.h: in function ‘long long int checkSize(char*)’:
ioD.h:9:18: error:‘fseeko’ was not declared in this scope; did you mean ‘fseek’?
9 | #define fseeko64 fseeko
| ^~~~~~
ioD.h:107:2: Note:in expansion of macro ‘fseeko64’
107 | fseeko64(pFile, 0, SEEK_END);
| ^~~~~~~~
ioD.h:10:18: error:‘ftello’ was not declared in this scope; did you mean ‘ftell’?
10 | #define ftello64 ftello
| ^~~~~~
ioD.h:108:18: Note:in expansion of macro ‘ftello64’
108 | long long ans = ftello64(pFile)/sizeof(edge);
| ^~~~~~~~
ioD.h: in function ‘void xSort(char*, long long int&, bool)’:
ioD.h:9:18: error:‘fseeko’ was not declared in this scope; did you mean ‘fseek’?
9 | #define fseeko64 fseeko
| ^~~~~~
ioD.h:425:5: Note:in expansion of macro ‘fseeko64’
425 | fseeko64(sBuf.inFile, (lastPos+ilen)sizeof(edge), SEEK_SET);
| ^~~~~~~~
ioD.h:9:18: error:‘fseeko’ was not declared in this scope; did you mean ‘fseek’?
9 | #define fseeko64 fseeko
| ^~~~~~
ioD.h:458:7: Note:in expansion of macro ‘fseeko64’
458 | fseeko64(sBuf.inFile, (lastPos + pi
len + posFile[pi]edgePerBuf)sizeof(edge), SEEK_SET);
| ^~~~~~~~
ioD.h: in function‘void inBufL::fseek(long long int)’:
ioD.h:9:18: error:‘fseeko’ was not declared in this scope; did you mean ‘fseek’?
9 | #define fseeko64 fseeko
| ^~~~~~
ioD.h:568:3: Note:in expansion of macro ‘fseeko64’
568 | fseeko64(inFile, x
sizeof(edgeL), SEEK_SET);
| ^~~~~~~~
ioD.h: in function ‘void xSortL(char
, long long int&)’:
ioD.h:9:18: error:‘fseeko’ was not declared in this scope; did you mean ‘fseek’?
9 | #define fseeko64 fseeko
| ^~~~~~
ioD.h:735:5:Note:in expansion of macro ‘fseeko64’
735 | fseeko64(sBuf.inFile, (lastPos+i
len)sizeof(edgeL), SEEK_SET);
| ^~~~~~~~
ioD.h:9:18: error:‘fseeko’ was not declared in this scope; did you mean ‘fseek’?
9 | #define fseeko64 fseeko
| ^~~~~~
ioD.h:768:7: Note:in expansion of macro ‘fseeko64’
768 | fseeko64(sBuf.inFile, (lastPos + pi
len + posFile[pi]*edgePerBuf)sizeof(edgeL), SEEK_SET);
| ^~~~~~~~
ioD.h: in function ‘void inBufS::fseek(long long int)’:
ioD.h:9:18: error:‘fseeko’ was not declared in this scope; did you mean ‘fseek’?
9 | #define fseeko64 fseeko
| ^~~~~~
ioD.h:864:3:Note:in expansion of macro ‘fseeko64’
864 | fseeko64(inFile, x
sizeof(edgeS), SEEK_SET);
| ^~~~~~~~

how can i fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant