Обсуждение: Troubles when compiling a fresh master branch on Windows

Поиск
Список
Период
Сортировка

Troubles when compiling a fresh master branch on Windows

От
Guillaume Lelarge
Дата:
Hi,

I installed git on my windows box. I launched Visual Studio 2008 to
compile it, and it gives me two errors :

error C2248: 'wxString::wxString' : cannot access private member
declared in class 'wxString'

(within pgServer.cpp)

and

error C2365: 'STATISTICS' : redefinition; previous definition was
'enumerator'

(within pgObject.h)

No issues on Linux with a fresh master branch.

I remember Adeel Khan had the same issue and I couldn't find a solution
to the issue. I still can't. Do you guys have found a way to compile a
fresh master branch from git on Windows?

Thanks.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

Re: Troubles when compiling a fresh master branch on Windows

От
Dave Page
Дата:
On Wed, Aug 18, 2010 at 2:47 PM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
> Hi,
>
> I installed git on my windows box. I launched Visual Studio 2008 to
> compile it, and it gives me two errors :
>
> error C2248: 'wxString::wxString' : cannot access private member
> declared in class 'wxString'
>
> (within pgServer.cpp)
>
> and
>
> error C2365: 'STATISTICS' : redefinition; previous definition was
> 'enumerator'
>
> (within pgObject.h)
>
> No issues on Linux with a fresh master branch.
>
> I remember Adeel Khan had the same issue and I couldn't find a solution
> to the issue. I still can't. Do you guys have found a way to compile a
> fresh master branch from git on Windows?

It's been working for me. I'll try a fresh checkout later.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company

Re: Troubles when compiling a fresh master branch on Windows

От
Luis Ochoa
Дата:
I had same issues only on windows, but I solved it in a temporary way

On Wed, Aug 18, 2010 at 9:47 AM, Guillaume Lelarge <guillaume@lelarge.info> wrote:
Hi,

I installed git on my windows box. I launched Visual Studio 2008 to
compile it, and it gives me two errors :

error C2248: 'wxString::wxString' : cannot access private member
declared in class 'wxString'

This is a implicit conversion problem with wxWidgets from int to wxString to solve it just  replace int value parameter at wxString parameter position with a explicit conversion like this:

wxString::Format(_T("%d"), integerValueHere)
 
(within pgServer.cpp)

and

error C2365: 'STATISTICS' : redefinition; previous definition was
'enumerator'


I just change name of this enumeration (two times: at definition and using it) to something else and it works.
 
(within pgObject.h)

No issues on Linux with a fresh master branch.

I remember Adeel Khan had the same issue and I couldn't find a solution
to the issue. I still can't. Do you guys have found a way to compile a
fresh master branch from git on Windows?

 
Regards, Luis.

Re: Troubles when compiling a fresh master branch on Windows

От
Guillaume Lelarge
Дата:
Le 19/08/2010 04:01, Luis Ochoa a écrit :
> I had same issues only on windows, but I solved it in a temporary way
>
> On Wed, Aug 18, 2010 at 9:47 AM, Guillaume Lelarge
> <guillaume@lelarge.info>wrote:
>
>> Hi,
>>
>> I installed git on my windows box. I launched Visual Studio 2008 to
>> compile it, and it gives me two errors :
>>
>> error C2248: 'wxString::wxString' : cannot access private member
>> declared in class 'wxString'
>>
>> This is a implicit conversion problem with wxWidgets from int to wxString
> to solve it just  replace int value parameter at wxString parameter position
> with a explicit conversion like this:
>
> wxString::Format(_T("%d"), integerValueHere)
>

Fixed in another way, but you're right on the issue.

>> (within pgServer.cpp)
>>
>> and
>>
>> error C2365: 'STATISTICS' : redefinition; previous definition was
>> 'enumerator'
>>
>>
> I just change name of this enumeration (two times: at definition and using
> it) to something else and it works.
>

Fixed also.

Thanks, Luis.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com