Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 5312 invoked from network); 2 May 2006 10:17:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 May 2006 10:17:33 -0000 Received: (qmail 54612 invoked by uid 500); 2 May 2006 10:17:18 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 54598 invoked by uid 500); 2 May 2006 10:17:18 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 54587 invoked by uid 99); 2 May 2006 10:17:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2006 03:17:17 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of PRESTONF@uk.ibm.com designates 195.212.29.135 as permitted sender) Received: from [195.212.29.135] (HELO mtagate2.uk.ibm.com) (195.212.29.135) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2006 03:17:16 -0700 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate2.uk.ibm.com (8.13.6/8.13.6) with ESMTP id k42AGsUU131016 for ; Tue, 2 May 2006 10:16:54 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k42AHhZp055698 for ; Tue, 2 May 2006 11:17:43 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11/8.13.3) with ESMTP id k42AGs7F018489 for ; Tue, 2 May 2006 11:16:54 +0100 Received: from d06ml068.portsmouth.uk.ibm.com (d06ml068.portsmouth.uk.ibm.com [9.149.38.194]) by d06av04.portsmouth.uk.ibm.com (8.12.11/8.12.11) with ESMTP id k42AGslJ018482 for ; Tue, 2 May 2006 11:16:54 +0100 In-Reply-To: <1146563870.d7adba40magnus.karlsson.linkoping@home.se> To: "Apache AXIS C User List" Subject: Re: LINK fatal error LNK1561 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 7.0 HF144 February 01, 2006 Message-ID: From: Fred Preston Date: Tue, 2 May 2006 11:17:42 +0100 X-MIMETrack: Serialize by Router on D06ML068/06/M/IBM(Release 6.53HF247 | January 6, 2005) at 02/05/2006 11:17:45, Serialize complete at 02/05/2006 11:17:45 Content-Type: multipart/alternative; boundary="=_alternative 00387A5480257162_=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 00387A5480257162_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hi Magnus, There should be three files on the Calculator Client side. Two=20 that are generated by the WSDL2Ws tool (Calculator.cpp and Calcuator.hpp)=20 and one that should be copied from ws-axis\c\samples\client\calculator=20 (Client.cpp). The client application (Client.cpp) contains the 'main'=20 method. Looking at the error information for LNK1561, it is suggesting=20 that you do not have a 'main' method for the application (as it is not a=20 library) and this would suggest that you have not built with Client.cpp.=20 If you have included both the cpp's and hpp file, it should build... I have used your command line 'cl' command and it builds without=20 error (I know this doesn't help you, but I just wanted to test that I=20 could build the project :-) as I haven't done it for a while). When I remove Client.cpp I get the same error as you are seeing... Regards, Fred Preston. "Magnus Karlsson" =20 02/05/2006 10:57 Please respond to "Apache AXIS C User List" To axis-c-user@ws.apache.org cc Subject Re: Re: LINK fatal error LNK1561 Hi Fred, I've already managed the server compilation without any trouble. Every=20 single possible variable is set (I think :=3D), including the AXISCPP=5FDEP= LOY=20 variable. Compiling command is the one on the home page, i.e. (with=20 correct installation directories) cl *cpp /GX /MD /D "WIN32" /I/include=20 /link/lib/axis/axis=5Fclient.lib /OUT:"Calculator.exe"=20 I use Visual C++ .NET 2003. Best regards Magnus Karlsson -----Original Message----- From: Fred Preston To: "Apache AXIS C User List" Date: Tue, 2 May 2006 10:33:00 +0100 Subject: Re: LINK fatal error LNK1561 Hi Magnus, There could be several answers to this question, but without any=20 detail I can only guess as to what might be causing this error... The=20 questions would be;- Are you building the Client as a "Win32 Console Project"? If so, you also = have to remember to set the following build options:- Project-> (project) = Properties...->C++->Code Generation->Runtime Library must be set to "/MD"=20 (Multi-threaded DLL) and Project-> (project)=20 Properties...->Linker->Input->Additional Dependencies must include the=20 Axis Client library (axis=5Fclient.dll). Have you set the AXISCPP=5FDEPLOY environment variable and downloaded the=20 associated prerequisite software and put the path of those libraries into=20 your PATH environment variable? The error itself does point to either the wrong type of project or a=20 missing library. Without more information, it is difficult to narrow the=20 problem... Regards, Fred Preston. "Magnus Karlsson" =20 02/05/2006 10:10 Please respond to "Apache AXIS C User List" To axis-c-user@ws.apache.org cc Subject LINK fatal error LNK1561 I've installed Axis C++ along with Apache Web Server on Windows XP=20 Professional. Now, I'm trying to build the client calculator example, but it ends up=20 with following error message: Creating library Calculator.lib and object Calculator.exp LINK : fatal error LNK1561: entry point must be defined Does anyone know how to get around this problem? Please, help me anyone! ---------------------------------------- Magnus Karlsson Pr=E4stbolsgatan 4D 587 33 Link=F6ping 013-210052, 070-7315374 ---------------------------------------- Magnus Karlsson Pr=E4stbolsgatan 4D 587 33 Link=F6ping 013-210052, 070-7315374 --=_alternative 00387A5480257162_= Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Magnus,
        There should be three files on the Calculator Client side.  Two that are generated by the WSDL2Ws tool (Calculator.cpp and Calcuator.hpp) and one that should be copied from ws-axis\c\samples\client\calculator (Client.cpp).  The client application (Client.cpp) contains the 'main' method.  = ;Looking at the error information for LNK1561, it is suggesting that you do not have a 'main' method for the application (as it is not a library) and this would suggest that you have not built with Client.cpp.  If you have included both the cpp's and hpp file, it should build...

        I have used your command line 'cl' command and it builds without error (I know this doesn't help you, but I just wanted to test that I could build the project :-) as I haven't done it for a while).

        When I remove Client.cpp I get the same error as you are seeing...

Regards,

Fred Preston.



"Magnus Karlsson= " <magnus.karlsson.linkoping@home.se>

02/05/2006 10:57
Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org>

To
axis-c-user@ws.apache.org
cc
Subject
Re: Re: LINK fatal error LNK1561





Hi Fred,

I've already managed the server compilation without any trouble. Every single possible variable is set (I think :=3D), including the AXISCPP=5FDEP= LOY variable. Compiling command is the one on the home page, i.e. (with correct installation directories)

cl *cpp /GX /MD /D "WIN32" /I<inst=5Fdir>/include /link<= inst=5Fdir>/lib/axis/axis=5Fclient.lib /OUT:"Calculator.exe"

I use Visual C++ .NET 2003.

Best regards
Magnus Karlsson

-----Original Message-----
From: Fred Preston <PRESTONF@uk.ibm.com>
To: "Apache AXIS C User List" <axis-c-user@ws.apache.org> Date: Tue, 2 May 2006 10:33:00 +0100
Subject: Re: LINK fatal error LNK1561

Hi Magnus,
       There could be several answers to this question, but without any
detail I can only guess as to what might be causing this error...  The
questions would be;-

Are you building the Client as a "Win32 Console Project"?  If so, you also
have to remember to set the following build options:-  Project-> (project)
Properties...->C++->Code Generation->Runtime Library must be set to "/MD"
(Multi-threaded DLL) and Project-> (project)
Properties...->Linker->Input->Additional Dependencies must include the
Axis Client library (axis=5Fclient.dll).
Have you set the AXISCPP=5FDEPLOY environment variable and downloaded the
associated prerequisite software and put the path of those libraries into
your PATH environment variable?

The error itself does point to either the wrong type of project or a
missing library.  Without more information, it is difficult to narrow the
problem...

Regards,

Fred Preston.




"Magnus Karlsson" <magnus.karlsson.linkoping@home.se>
02/05/2006 10:10
Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org>


To
axis-c-user@ws.apache.org
cc

Subject
LINK fatal error LNK1561






I've installed Axis C++ along with Apache Web Server on Windows XP
Professional.

Now, I'm trying to build the client calculator example, but it ends up
with following error message:

Creating library Calculator.lib and object Calculator.exp
LINK : fatal error LNK1561: entry point must be defined

Does anyone know how to get around this problem?

Please, help me anyone!
----------------------------------------
Magnus Karlsson
Pr=E4stbolsgatan 4D
587 33  Link=F6ping
013-210052, 070-7315374



----------------------------------------
Magnus Karlsson
Pr=E4stbolsgatan 4D
587 33  Link=F6ping
013-210052, 070-7315374

--=_alternative 00387A5480257162_=--