FileZilla Client Development on Visual Studio 2015

Moderator: Project members

Post Reply
Message
Author
nana1988
500 Command not understood
Posts: 3
Joined: 2016-07-01 02:44
First name: Nana
Last name: Phan

FileZilla Client Development on Visual Studio 2015

#1 Post by nana1988 » 2016-07-01 03:56

Hello,

I downloaded the source files from the main side and I build it. It stuck at the "unresolved external symbol", and I have no idea how to fix it:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol "public: static char const fz::local_filesys::path_separator" (?path_separator@local_filesys@fz@@2DB) FileZilla D:\Demo\FTP\filezilla-3.19.0\src\interface\auto_ascii_files.obj 1
Error LNK2001 unresolved external symbol "public: static char const fz::local_filesys::path_separator" (?path_separator@local_filesys@fz@@2DB) FileZilla D:\Demo\FTP\filezilla-3.19.0\src\interface\LocalTreeView.obj 1
I included the *.lib, local_filesys.cpp or hpp already. Does anyone have any idea about this problem? I used the latest version of libfilezilla-0.5.3. My PC is 64 bit and I build all the lib and source to X86.

Thanks,
Nana,

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla Client Development on Visual Studio 2015

#2 Post by botg » 2016-07-01 06:37

Did you build libfilezilla as DLL or as static library?

nana1988
500 Command not understood
Posts: 3
Joined: 2016-07-01 02:44
First name: Nana
Last name: Phan

Re: FileZilla Client Development on Visual Studio 2015

#3 Post by nana1988 » 2016-07-01 07:49

Hi,

As the project using, I use *.lib file in the addition library. I built it to x86 target
I could not fix the problem or find the reason, I tried another method, by instead using the constant char path_separator in local_filesys.cpp. I created another constant char in FileZilla project.

Code: Select all

#ifdef FZ_WINDOWS
char const local_filesys::path_separator = '\\';
#else
char const local_filesys::path_separator = '/';
#endif
I builded the project file successfully now. However, I could not run the *.exe file, I've got another problem "read access violation" at the <delete> part

Code: Select all

void COptions::Destroy()
{
	if (!m_theOptions)
		return;

	delete m_theOptions;
	m_theOptions = 0;
}
Do you have any idea? Is it because I change the const variable?

Regards,
Nana,

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla Client Development on Visual Studio 2015

#4 Post by botg » 2016-07-01 08:55

Something more fundamental is broken. Which version of Visual Studio 2015 are you using? Make sure Update 3 is installed.

nana1988
500 Command not understood
Posts: 3
Joined: 2016-07-01 02:44
First name: Nana
Last name: Phan

Re: FileZilla Client Development on Visual Studio 2015

#5 Post by nana1988 » 2016-07-04 00:14

Hi,

I installed the Visual Studio Community 2015 Version 14.0.25421.03 Update 3

Regards,
Nana,

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla Client Development on Visual Studio 2015

#6 Post by botg » 2016-07-04 07:16

I have no idea what could be causing this.

Try compiling it using MinGW instead.

Post Reply