Questions tagged [cs50-library]
The cs50-library tag has no usage guidance.
21 questions
0
votes
1
answer
333
views
How to use a PostgreSQL database using python CS50 library's SQL function?
I wanted to use the CS50 library's SQL function for interacting with a PostgreSQL database.
I have installed PostgreSQL on my computer and removed the need for passwords by modifying the .../Program ...
0
votes
1
answer
90
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
2
answers
249
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
0
answers
2k
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
1
answer
744
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
1
answer
143
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
1
answer
147
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 ...
2
votes
3
answers
3k
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 ...
1
vote
1
answer
802
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
1
answer
147
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, ...
2
votes
1
answer
3k
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 <...
4
votes
5
answers
31k
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
1
answer
231
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
1
answer
5k
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 ...
7
votes
3
answers
8k
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
1
answer
2k
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
2
answers
25k
views
Downloading cs50.h
where i can download the cs50.h file? I don't want the cs50 appliance.
0
votes
3
answers
872
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
8
answers
16k
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
3
answers
718
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/...
7
votes
2
answers
3k
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)?