Questions tagged [cs50-library]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Clang external library (libcs50) linker error “C”

I don't access to 4g internet connection, so I installed cs50 library on my lubuntu for offline use, I put the cs50.h file in /usr/local/inlcude and the libcs50.a file in /usr/local/lib. Now when i ...
0
votes
2answers
150 views

cs50.sandbox doesn't see <cs50.h> library

I am passing the edX CS50 2019 course. I have a problem with making my first hello program. The system for some reasons doesn't see the library, so I cannot use the GetString function. Here is the ...
0
votes
0answers
695 views

cs50 Library not getting linked.

I have updated my work space using 'update50'. But the error shows that linker command has failed[ while I try using 'get_int()' ]. How should I proceed?
0
votes
1answer
206 views

Uninstall cs50 library

How can I uninstall the CS50 library off of Ubuntu? I followed the instructions on the page but I realized that I have the wrong version and now I need to uninstall it.
1
vote
1answer
123 views

PSET7 - Using OOP in CS50 library

I´m really curious about the CS50 library (cs50.php). I noticed that the staff implemented OOP there (object oriented php) but not in helpers.php. I just wonder why? Does anybody know?
1
vote
1answer
136 views

Difference between CS50::query() and query()

I'm currently solving pset7 CS50 Finance. The query() function can be used as CS50::query() or simply query(). Both seem to work. So, is there any difference between the two approaches? Are there any ...
1
vote
3answers
2k views

How to add cs50 library in codeblocks

I've tried everything I found on the web but can't make cs50 library working with codeblocks. My pc becomes slow when I run appliance. So, sometimes I need to work with codeblocks. Please, somebody ...
0
votes
1answer
631 views

How to fix the “undefined references to GetString” error?

I can't get the GetString() function from the cs50 library to work. I have tried update50 and have rebooted several times and it is still throwing out this error: jharvard@appliance (~/Dropbox): ...
0
votes
1answer
85 views

why am I unable to unzip the cs50 library?

I can't unzip the cs50 library,any suggestion? Last login: Sun Jul 5 15:00:45 on ttys000 Daniels-MBP:Users danielsullivan$ unzip library50-c-5.zip unzip: cannot find or open library50-c-5.zip, ...
1
vote
1answer
1k views

Why do I not have to link stdio.h while compiling with clang?

To compile this source code with clang, we had to link "cs50" library like this: clang hello.c -lcs50 but we did not have to link "stdio". why? /* hello.c */ #include <stdio.h> #include <...
3
votes
5answers
15k views

How do I install the CS50 library to my local OS?

Is there any way I can download and install the CS50 library to my system and run programs importing the library instead of downloading the virtual machine ?
0
votes
1answer
202 views

How do I get the cs50 appliance library to work

I am new to cs50 I have the virtual appliance on my pc, when I try to enter the command make hello-2 in geedit I get an error undefined reference to 'GetString'. My code seems to be correct I think ...
2
votes
1answer
4k views

undefined reference to `GetInt'

I wish anyone could give a clue on this: I've started the cs50 course, amazing!. But, I am not using the cs50 appliance, I use fedora 20 OS, got installed the cs50 library according guidelines but I ...
4
votes
2answers
4k views

Installing cs50.h on a Mac

I am currently taking CS50 online via edX. I would like to install the CS50 Library. I followed these instructions for installing on a Mac and everything seemed to work out fine. However, anytime I ...
1
vote
1answer
1k views

Problem including cs50.h with Visual Studio 2013

I use the cs50 app and VS2013. Of course, all is well with the cs50 app (since it is designed to be) but when I use VS2013 to code, any functions I use from cs50.h produce an error that looks like ...
6
votes
2answers
14k views

Downloading cs50.h

where i can download the cs50.h file? I don't want the cs50 appliance.
0
votes
3answers
692 views

Where are header files located in the CS50 appliance?

I'm wondering: Where are the header files - such as stdio.h or cs50.h - located: the ones that we include at the start of almost every source file?
6
votes
8answers
8k views

Undefined reference to `GetString'

I'm having the following error myName.c:(.text+0x18): undefined reference to `GetString' It seems that something is wrong with the cs50 library. What is this file suppose to contain? In my case it ...
0
votes
3answers
712 views

gevents.h File Not Found

When I compile this for pset4 #include "gevents.h" #include "gobjects.h" #include "gwindow.h" int main(void) { // do something } I get this error jharvard@appliance (~): clang -ggdb3 -Ispl/...
6
votes
2answers
2k views

How to Compile the CS50 Library on Another Linux Distro?

I have copied cs50.c and cs50.h from the appliance. Now, what's the command that should be run to compile this library using gcc or clang on any other Linux distro (e.g., Ubuntu 14.04 in my case)?