Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2010, 02:07 PM
Registered User
 
Join Date: Jan 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual Studio 6.0 c++ libpurple compile

Hi,
This is my first post.
I'm trying to compile libpurple. There is a tutorial on how to install it with mingw and using cygwin.
http:\\developer.pidgin.im\wiki\BuildingWinPidgin
libpurple is used in pidgin chatt application.

I don't want to use mingw but visual studio. I want to try to build this manually just to learn.
I would like your help and advice on how to configure and get all nessesary component in order to make it compile.

I'm trying to follow what this guy did:
http:\\pidgin.im\pipermail\devel\2007-May\001041.html

pidgin.im doesn't have a support forum but it is more like a send in your bug ticket system. I don't think I have
a bug to send in but it is more a problem understanding how to setup the project.

I get this error:
c:\project\libpurple\libc_internal.h(38) : error C2143: syntax error : missing ')' before '*'
c:\project\libpurple\libc_internal.h(38) : error C2081: 'socklen_t' : name in formal parameter list illegal

Search on google gives:
Install Microsoft SDK

Suggested link not found on Microsoft but redirects to some 1.5 gig installation with server 2008, vista and dot.net.
I use a windows xp and visual studio 6.0 on a virtual pc.

Tried to remove as much components as possible from the installation just using source code files.
Installation resulted in 250 mb of data.

Don't know really what to do now after the installation. I have tried to include the path:
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include
But the same error occures.

Any suggestions?

Sincerely
Anders

PS.
The hardest part with programming is to setup the project so it compiles.
 
Old February 4th, 2010, 11:40 AM
Registered User
 
Join Date: Jan 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have moved this project to VS 2008.
I couldn't find this:
C/C++::Advanced::Force Includes:
------------------------------------------------
winsock2.h; config.h

I'm not going to use a def file because I would like to mark functions as export instead.

When I try to compile under the current setup I get these errors:
Error 84 error C2054: expected '(' to follow 'STATIC_PROTO_INIT' c:\users\admin\documents\visual studio 2008\projects\libpurple\libpurple\core.c 79 LibPurple
Error 85 error C2082: redefinition of formal parameter 'purple_core_init' c:\users\admin\documents\visual studio 2008\projects\libpurple\libpurple\core.c 80 LibPurple
Error 86 error C2143: syntax error : missing ';' before '{' c:\users\admin\documents\visual studio 2008\projects\libpurple\libpurple\core.c 80 LibPurple
Error 87 error C2065: 'VERSION' : undeclared identifier c:\users\admin\documents\visual studio 2008\projects\libpurple\libpurple\core.c 288 LibPurple

Please give me some advice.
 
Old February 8th, 2010, 11:53 AM
Registered User
 
Join Date: Jan 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I read some more about STATIC_PROTO_INIT here:

pidgin.im\pipermail\devel\2007-August\002624.html

When I checked my own project files for STATIC_PROTO_INIT I could find only one line:
Code:
/* Loads static protocol plugin module initialization functions. */
#undef STATIC_PROTO_INIT
So did I include the right config.h....

When I checked the original package after STATIC_PROTO_INIT
I found the real definition in:
config.h.mingw

I was using the config.h.in before. Don't know why they change the name to .in. Crazy :)

So when I compiled the project I got exactly the same error. Weird. I then moved the definition:
Code:
#ifndef STATIC_PROTO_INIT
#define STATIC_PROTO_INIT static void static_proto_init(void) {  }
#endif
directly to core.c and I could actually compile a bit longer until I hit this error:
error C2065: 'VERSION' : undeclared identifier

I could find a define of VERSION in guess!! config.h.... It is like visual studio still thinks that the old config.h is there. I have deleted config.h. I even removed config.h from the project and reincluded it again just in case there where some caching system.

What can I do? Please help.
 
Old February 9th, 2010, 12:57 PM
Registered User
 
Join Date: Jan 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please help anyone?





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Compile the SourceCode in Visual Studio 2005 hozefam BOOK: Professional C++ 1 December 5th, 2009 05:13 PM
Visual studio 2005(32 bit) code not work in visual studio 2008 on windows server 2008 gr8.jain Visual Basic 2008 Essentials 1 August 31st, 2009 10:07 AM
Visual Studio 2003 vs. Visual Studio 2005 eitanbarazani C# 2005 4 May 9th, 2006 01:34 AM
Visual Studio .net2003 and Visual Studio 2005 Gert Visual C++ 1 January 24th, 2006 05:10 AM
Visual studio 6 or visual studio .NET chaitannyam Visual C++ 1 November 13th, 2005 09:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.