Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kamik1979

Pages: [1]
1
General / Re: Linker error: sf::Color
« on: October 05, 2020, 04:44:23 pm »
I have read documentation carefully and i found that TcpSocket::close() is protected. I can close socket using TcpSocket::disconnect(). Thanks for all your help.

2
General / Re: Linker error: sf::Color
« on: October 03, 2020, 06:24:15 pm »
No i don't want to close socket after return  ;D. I wanted to show that function only. I can't paste whole error becouse it is in Polish language. Error codes I wrote above, it is E0265 and C2248.

3
General / Re: Linker error: sf::Color
« on: October 03, 2020, 05:58:13 pm »
Here is errored code:

(click to show/hide)

4
General / Re: Linker error: sf::Color
« on: October 03, 2020, 05:07:31 pm »
Oh, yes, I removed SFML_STATIC and some errors vanishes  :P. But still error (another, E0265 and C2248) occurs when I try use TcpSocket::close(). VS 2017 says that it's inaccessible. What do you think about it?

5
General / Re: Linker error: sf::Color
« on: October 03, 2020, 03:27:52 pm »
I'm using Visual Studio Community 2017 in Windows 10 x64 and I downloaded SFML 2.5.1 64 Bit. I'm compiling program with x64 architecture. In Project properties -> Linker -> Input -> Additional dependiences in x64 and Debug I have these entries:

(click to show/hide)

They are all libs that I have in SFML-2.5.1\lib

And in C/C++ -> General -> Additional include directories I have my SFML include folder path. (Similarly for Linker -> General -> Additional library directories I have my SFML lib folder path)

All DLLs are in the project folder.

I can't paste error messages that exactly I have becouse they are in polish language. They are LNK2001 errors. I tested network module and it's not working properly too.

I want to use SFML becouse I want to use network i my C++ program. I know that SFML it's easy way to do that. If you know any easy way to communicate between two computers using internet, I'll be happy if you want to share it with me.

I'm using this tutorial:

6
General / (Solved) Linker error: sf::Color
« on: October 03, 2020, 11:59:22 am »
Hi

I installed SFML 2.5.1 in VS2017, and i have a problem. I wrote a test code:

(click to show/hide)

And I got such errors: LNK2001 about sf::Color::Yellow and sf::RenderState::Default.

I imported all the libraries from the SFML-2.5.1\lib folder. I'm doing something wrong? Or this code (I copied it from internet  ;) ) is for older SFML version? I have no idea...

(Sorry for all English language errors, I'm not good at it)

Pages: [1]
anything