axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Vijayalakshmi.VenkadaSw...@cognizant.com>
Subject RE: Getting error while compiling web service dll in VC++7.0 for IIS
Date Fri, 09 Mar 2007 08:42:09 GMT

Hi,

 

Thanks Nandika,  after adding the  directive AXIS2_DECLARE_EXPORT that
error is not coming but the following new error is coming.

Can you tell me what could be the problem.

 

myecho error LNK2001: unresolved external symbol
_axiom_element_create@20

myecho error LNK2001: unresolved external symbol
_axis2_log_impl_log_error

myecho error LNK2005: _DllMain@12 already defined in
MSVCRTD.lib(dllmain.obj)

myecho error LNK2019: unresolved external symbol
_axiom_data_source_create@12 referenced in function
_axis2_echoString_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_data_source_create@12 referenced in function
_axis2_echoStringResponse_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_data_source_get_stream@8 referenced in function
_axis2_echoString_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_data_source_get_stream@8 referenced in function
_axis2_echoStringResponse_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_element_create@20 referenced in function
_axis2_echoString_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_element_create@20 referenced in function
_axis2_echoStringResponse_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_element_get_qname@12 referenced in function
_axis2_echoString_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_element_get_qname@12 referenced in function
_axis2_echoStringResponse_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_element_get_text@12 referenced in function
_axis2_echoString_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_element_get_text@12 referenced in function
_axis2_echoStringResponse_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_element_set_namespace@16 referenced in function
_axis2_echoString_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_element_set_namespace@16 referenced in function
_axis2_echoStringResponse_serialize@16

myecho error LNK2019: unresolved external symbol
_axiom_element_set_text@16 referenced in function
_axis2_svc_skel_myecho_on_fault@12

myecho error LNK2019: unresolved external symbol
_axiom_namespace_create@12 referenced in function
_axis2_echoString_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_namespace_create@12 referenced in function
_axis2_echoStringResponse_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_node_get_data_element@8 referenced in function
_axis2_echoString_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_node_get_data_element@8 referenced in function
_axis2_echoStringResponse_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_node_get_first_child@8 referenced in function
_axis2_echoString_deserialize@12

myecho error LNK2019: unresolved external symbol
_axiom_node_get_first_child@8 referenced in function
_axis2_echoStringResponse_deserialize@12

myecho error LNK2019: unresolved external symbol
_axis2_array_list_add@12 referenced in function
_axis2_svc_skel_myecho_init@8

myecho error LNK2019: unresolved external symbol
_axis2_array_list_create@8 referenced in function
_axis2_svc_skel_myecho_init@8

myecho error LNK2019: unresolved external symbol
_axis2_array_list_free@8 referenced in function
_axis2_svc_skel_myecho_free@8

myecho error LNK2019: unresolved external symbol
_AXIS2_ECHOSTRING_GET_PARAM0 referenced in function
_axis2_skel_myecho_echoString

myecho error LNK2019: unresolved external symbol
_AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN referenced in function
_axis2_skel_myecho_echoString

myecho error LNK2019: unresolved external symbol
_axis2_log_impl_log_error referenced in function
_axis2_echoString_deserialize@12

myecho error LNK2019: unresolved external symbol
_axis2_log_impl_log_error referenced in function
_axis2_echoStringResponse_deserialize@12

myecho error LNK2019: unresolved external symbol
_axis2_msg_ctx_get_op_ctx@8 referenced in function
_axis2_svc_skel_myecho_invoke@16

myecho error LNK2019: unresolved external symbol _axis2_op_ctx_get_op@8
referenced in function _axis2_svc_skel_myecho_invoke@16

myecho error LNK2019: unresolved external symbol _axis2_op_get_qname@8
referenced in function _axis2_svc_skel_myecho_invoke@16

myecho error LNK2019: unresolved external symbol _axis2_qname_create@16
referenced in function _axis2_echoString_create@4

myecho error LNK2019: unresolved external symbol _axis2_qname_create@16
referenced in function _axis2_echoStringResponse_create@4

myecho error LNK2019: unresolved external symbol _axis2_qname_equals@12
referenced in function _axis2_echoString_deserialize@12

myecho error LNK2019: unresolved external symbol _axis2_qname_equals@12
referenced in function _axis2_echoStringResponse_deserialize@12

myecho error LNK2019: unresolved external symbol _axis2_qname_free@8
referenced in function _axis2_echoString_free@8

myecho error LNK2019: unresolved external symbol _axis2_qname_free@8
referenced in function _axis2_echoStringResponse_free@8

myecho error LNK2019: unresolved external symbol
_axis2_qname_get_localpart@8 referenced in function
_axis2_svc_skel_myecho_invoke@16

myecho error LNK2019: unresolved external symbol _axis2_strcmp@8
referenced in function _axis2_svc_skel_myecho_invoke@16

myecho error LNK2019: unresolved external symbol _axis2_strlen@4
referenced in function _axis2_echoString_serialize@16

myecho error LNK2019: unresolved external symbol _axis2_strlen@4
referenced in function _axis2_echoStringResponse_serialize@16

myecho fatal error LNK1120: 25 unresolved externals

d:\Axis2Cdll\myecho\ccodewsdltc1\axis2_skel_myecho.c(33): warning C4013:
'AXIS2_ECHOSTRING_GET_PARAM0' undefined; assuming extern returning int

d:\Axis2Cdll\myecho\ccodewsdltc1\axis2_skel_myecho.c(37): warning C4013:
'AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN' undefined; assuming extern
returning int

d:\Axis2Cdll\myecho\ccodewsdltc1\axis2_skel_myecho.c(33): warning C4047:
'=' : 'char *' differs in levels of indirection from 'int'

myecho warning LNK4006: _DllMain@12 already defined in
MSVCRTD.lib(dllmain.obj); second definition ignored

 

 

 

 

 

 

 

 

 

 

 

Hi,
you need to set preprosessor directive AXIS2_DECLARE_EXPORT in your
project.

Regards
Nandika 

 

 

Hi,

 

    Trying to create a simple web service with Axis2c and trying to
deploy in IIS, steps followed and getting the error attached.

Can any one suggest how to get rid of the errors?

 

1.	Created a new solution  in VC++7.0

      2.    Created New Project for LL 

3         Generated skeleton files with the option 

              With classpath +      "jar org.apache.axis2.wsdl.WSDL2C -D
org.apache.adb.properties=org/apache/axis2/schema/c-schema-compile.prope
rties -uri myecho.wsdl -o genfiles -a -l c -d adb -ss -sd -u "

 

     4.  It generated the following files: 

                    axis2_skel_myecho.c

                    axis2_skel_myecho.h

                    axis2_svc_skel_myecho.c and service.xml and 

in src folder the following files were generated:
axis2_echoString.c

 
axis2_echoString.h

 
axis2_echoStringResponse.c

 
axis2_echoStringResponse.h

    5. Done my code in axis2_skel_myecho.c file.

    6. Added the Include Path and library path with Axis2C Include and
Lib 

   Compiled the above setup: Getting the following error 

 

 "\src\axis2_echoString.c(29): error C2491: 'axis2_echoString_create' :
definition of dllimport function not allowed

\src\axis2_echoStringResponse.c (30): error C2491:
'axis2_echoStringResponse_create' : definition of dllimport function not
allowed

\axis2_svc_skel_myecho.c (197): error C2491: 'axis2_get_instance':
definition of dllimport function not allowed

\axis2_svc_skel_myecho.c (211): error C2491: 'axis2_remove_instance' :
definition of dllimport function not allowed"

 

-Viji



This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of
this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.
Mime
View raw message