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

Cannot use the library in Windows #297

Open
carlo8767 opened this issue Jul 8, 2023 · 5 comments
Open

Cannot use the library in Windows #297

carlo8767 opened this issue Jul 8, 2023 · 5 comments

Comments

@carlo8767
Copy link

carlo8767 commented Jul 8, 2023

Hi,
I have followed the guideline : https://cs50.readthedocs.io/libraries/cs50/c/ in order to install the library inside the subsystem of Linux using Windows.
Despite all it is still not recognize in Visual Studio Code.
In detail the method get_char and get_string showed always this error :
/usr/bin/ld: /tmp/ccGrlnGG.o: in function main': hello.c:(.text+0x1c): undefined reference to get_char'
/usr/bin/ld: hello.c:(.text+0x46): undefined reference to `get_char'
collect2: error: ld returned 1 exit status
make: *** [:

I believe there is an error inside the file of the library: #include <cs50.h>

@Islam0mar
Copy link

This is a linking error double check that you set LDLIBS="-lcrypt -lcs50 -lm" or add -lcs50 to compiler/linker flags.

@augie909
Copy link

augie909 commented Jul 18, 2023

Having the same problem right now. It's been driving me crazy. Were you able to fix it?

@naziaambreen
Copy link

cs50 library is unaccessible please guide or take remote access and deploy

@carlo8767
Copy link
Author

Hi, I was able to find a workaround. The only way is to access it online because otherwise is impossible. @augie909 This is the link where you can connect your ide or online : https://cs50.dev/

@MuhammadAhmad24
Copy link

@carlo8767 Yes you are right, This is the Only way to access 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

5 participants