These are chat archives for learnclang/general

14th
Jan 2015
Sebastian Thiel
@Byron
Jan 14 2015 08:16
@mottosso I'd rather like someone of the main wiki editors to do that if they see my random throw-ins of resources fit for what this group wants to learn. Thanks for your understanding.
Marcus Ottosson
@mottosso
Jan 14 2015 08:33
There's no editor here :)
Sebastian Thiel
@Byron
Jan 14 2015 19:06

Have a look at episode 6 of the RPS Screencast on youtube

@/all You will find links to youtube as well as the code on github
Isabella Cheng
@Firebolt93q
Jan 14 2015 19:09
i started late and these episodes are coming out sooo fast! I hope it’s ok im behind, slowly catching up ^_^;
Alex Widener
@alexwidener
Jan 14 2015 19:13
There’s no real timeline @Firebolt93q - We’re all here to help each other. Learn the information at your own pace and make sure to absorb it rather than glossing over it.
Isabella Cheng
@Firebolt93q
Jan 14 2015 19:18
cool, thanks!
Sebastian Thiel
@Byron
Jan 14 2015 19:31
Btw: I set the say_you_lost pointer to 0 in the constructor code ... that shouldn't be, and I have removed the line now. It's amazing that didn't crash ! It really should have :) !
Marcus Ottosson
@mottosso
Jan 14 2015 19:35
Well said, @alexwidener and welcome to the chat @Firebolt93q! :)
Isabella Cheng
@Firebolt93q
Jan 14 2015 19:40
:D!
Marcus Ottosson
@mottosso
Jan 14 2015 19:56
I didn't even know you made this screencast! :D
elpie89
@elpie89
Jan 14 2015 20:18
@mottosso i'm trying right now to work on the current project
Marcus Ottosson
@mottosso
Jan 14 2015 20:18
Cool, how's it going?
elpie89
@elpie89
Jan 14 2015 20:18
i'm at 0%
i open now sublime
hahaha
Marcus Ottosson
@mottosso
Jan 14 2015 20:19
0% Is a good start :)
elpie89
@elpie89
Jan 14 2015 20:19
i need to read the documentation
Marcus Ottosson
@mottosso
Jan 14 2015 20:50
Any progress, @elpie89?
elpie89
@elpie89
Jan 14 2015 20:51
i have problem including libcurl on qt creator
you?
Marcus Ottosson
@mottosso
Jan 14 2015 20:52
I'm not sure how to include it actually,
Have you installed it?
I'm not sure if we need to install a binary version, or if we can use the source directly
But I would start out with a plain-text editor, instead of Qt Creator.
Just so we're sure it isn't a setting in the program that is causing issues.
There really shouldn't be anything but a plain call to gcc or whichever compiler you use.
Which are you using?
elpie89
@elpie89
Jan 14 2015 20:55
i use minGW and the version of libcurl is a binary with only header file
Marcus Ottosson
@mottosso
Jan 14 2015 20:56
Ok, that sounds right I suppose
Is the file in the same directory as your source file?
The installation of libcurl I mean, is that in the same directory as the file you are working on?
elpie89
@elpie89
Jan 14 2015 20:57
no i read on web,for qt i need to put the file in the minGW directory
and later configure QT
after this i can call #include <curl/curl.h>
Marcus Ottosson
@mottosso
Jan 14 2015 20:58
Ah, I'm not really familiar with Qt myself
Is it a .lib file?
The libcurl installation?
elpie89
@elpie89
Jan 14 2015 20:59
the binary have lib files and a lot of header
Marcus Ottosson
@mottosso
Jan 14 2015 20:59
Okay, typically I would compile with a lib file like this:
$ gcc myfile.c libcurl.lib
elpie89
@elpie89
Jan 14 2015 20:59
but you're right, it's better if I use a simple editor
Marcus Ottosson
@mottosso
Jan 14 2015 20:59
Then that would include libcurl, so that you can use the header.
elpie89
@elpie89
Jan 14 2015 21:00
i try
i haven't lib file,i have only headers and .a files
Marcus Ottosson
@mottosso
Jan 14 2015 21:03
@csaez Are you familiar with this?
Are you on Windows, @elpie89?
elpie89
@elpie89
Jan 14 2015 21:03
yes
Marcus Ottosson
@mottosso
Jan 14 2015 21:04
And are you sure you've got the right binary for Windows?
elpie89
@elpie89
Jan 14 2015 21:05
yes because the download is a simple wizard
Cesar Saez
@csaez
Jan 14 2015 21:06
I think libcurl should be somewhere in your minGW path because it's an external dependency (just like python site-packages)
Marcus Ottosson
@mottosso
Jan 14 2015 21:06
Ah, I thought it would always look in the current directory first, and then start traversing through other paths looking for libraries
Maybe I was wrong about that.
Python does that, though
Cesar Saez
@csaez
Jan 14 2015 21:07
it does! but you shouldn't really append other ppl code to your sources
Marcus Ottosson
@mottosso
Jan 14 2015 21:07
We're just trying to get it up and running at all, I think
elpie89
@elpie89
Jan 14 2015 21:09
i find the official installation guide
and a very good first tutorial for libcurl
Marcus Ottosson
@mottosso
Jan 14 2015 21:10
Sweet, looks like what we need. :)
Cesar Saez
@csaez
Jan 14 2015 21:10
make to the rescue ;)
Marcus Ottosson
@mottosso
Jan 14 2015 21:11
How so?
Cesar Saez
@csaez
Jan 14 2015 21:13
Install:
./configure
make
make install
Marcus Ottosson
@mottosso
Jan 14 2015 21:13
To install libcurl you mean?
I thought you meant to compile his code.
Cesar Saez
@csaez
Jan 14 2015 21:14
yep, it's in the install docs @elpie89 just linked.
Marcus Ottosson
@mottosso
Jan 14 2015 21:14
It's already installed I think, using a Windows installer
The problem is using it in his code
elpie89
@elpie89
Jan 14 2015 21:18
yes
it can't find libcurl.h
Marcus Ottosson
@mottosso
Jan 14 2015 21:28
How about
```bash
Sorry :) One sec
$ gcc myfile.c libcurl.a
Just include whatever the binary file was called, does that work?
elpie89
@elpie89
Jan 14 2015 21:31
no
it say that can't find libgmp-10.dll
work for you?
Marcus Ottosson
@mottosso
Jan 14 2015 21:32
I'm not compiling anything at the moment
A dependency perhaps
If you google libgmp, it looks like there's another library needed
elpie89
@elpie89
Jan 14 2015 21:34
i need to do more search