fix syntax error while building on linux #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Line 1257, "_getch()" unrecognized, outputs error,
" /home/d44/Documents/CDP8/dev/new/newtex.c: In function ‘usage2’:
/home/d44/Documents/CDP8/dev/new/newtex.c:1257:20: warning: implicit declaration of function ‘_getch’; did you mean ‘getch’? [-Wimplicit-function-declaration]
1257 | while((k = _getch())!='s' && k != 'e')
| ^~~~~~
| getch
[ 31%] Linking C executable /home/d44/Documents/CDP8/NewRelease/newtex
/usr/bin/ld: CMakeFiles/newtex.dir/newtex.c.o: in function
usage2': newtex.c:(.text+0x4b78): undefined reference to_getch'collect2: error: ld returned 1 exit status
make[2]: *** [dev/new/CMakeFiles/newtex.dir/build.make:101: /home/d44/Documents/CDP8/NewRelease/newtex] Error 1
make[1]: *** [CMakeFiles/Makefile2:2861: dev/new/CMakeFiles/newtex.dir/all] Error 2
make: *** [Makefile:156: all] Error 2 "
after removing the underscore it successfully builds.