Comments (2)
As the error message said, the getline
function has conflicted with the same name in stdio.h
file.
I replaced all the getline
by my_getline
from all the files given by the error message, and successfully compiled the package.
Note that there are several games also have getline
, so you have to replace all of them.
from bsdgames.
gcc -g -O2 -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -DNEW_STYLE -Iinclude -Iboggle/boggle -c boggle/boggle/bog.c -o boggle/boggle/bog.o
In file included from boggle/boggle/bog.c:58:
boggle/boggle/extern.h:46:10: error: conflicting types for ‘getline’; have ‘char *(char *)’
46 | char *getline(char *);
| ^~~~~~~
In file included from include/stdio.h:35,
from boggle/boggle/bog.c:51:
/usr/include/stdio.h:703:18: note: previous declaration of ‘getline’ with type ‘__ssize_t(char ** restrict, size_t * restrict, FILE * restrict)’ {aka ‘long int(char ** restrict, long unsigned int * restrict, FILE * restrict)’}
703 | extern __ssize_t getline (char **__restrict __lineptr,
| ^~~~~~~
make: *** [GNUmakefile:158: boggle/boggle/bog.o] Error 1
from bsdgames.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bsdgames.