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

when compiling i get an error saying cannot find -1ncurses #11

Open
cleon456 opened this issue Feb 23, 2017 · 2 comments
Open

when compiling i get an error saying cannot find -1ncurses #11

cleon456 opened this issue Feb 23, 2017 · 2 comments

Comments

@cleon456
Copy link

cleon456 commented Feb 23, 2017

I'm pretty new at this, and i can't understand what this means.

I'm also using codeblocks with mingw

@Schmel924
Copy link

Hello!
I'm not 100% sure, but i can still tell you something.
First and foremost; it's "-[L]ncurses" (you should use lowercase L of course)
L stands for lib[rary] - it means additional, already precompiled thing, that exists somewhere in your PC.
It's usual to use (third-party) libraries when making a huge program, and LCS is no exception.
Problem is that if someone else tries to recompile such program, he must knew about this libraries and check if they are somewhere within downloaded sourcecode, or already exist at computer beforehand.
Directx, .NET, - are very well known packages that have such libraries that are used by nearly every program outthere

Second problem: specific ncurses library was designed to work with Unix\Linux system, and generally speaking not supported in windows OS. However there is (of course there is) a substitution called PDCurses. This library presents itself as multiplatform, and works similar albeit not identical to ncurses.

From here you can follow this guide http://cects.com/adding-pdcurses-to-mingw/
However one last step is needed to make LCS work.
It can be either: tell LCS to search for PDCurses instead. (change linker settings in build options of LCS project)
or rename PDCurses.lib to libncurses.a (in MinGW lib folder)

At least it make game workable for me.
However later i switched to Sublime+gcc via git bash

Have a nice try.

@Schmel924
Copy link

Schmel924 commented Mar 7, 2017

Also, you may find this useful, if you read a bit about makefiles.
I am ashamed about this file, but it works

https://github.com/Schmel924/Liberal-Crime-Squad/blob/master/Makefile

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

2 participants