Linking Error

windows ce

    Next

  • 1. Cannot enable Direct Connection
    Hello, In order to ActiveSync my PXA255 board via Direct Connection, I added the following features to my platform image: Transport->ActiveSync Transport->KITL Transport->TCP/IP Serial driver Unimodem TAPI AsyncMac NDIS PPP ActiveSync-related features However, the Direct Connection is still not available for me. (I cannot make a new connection by selecting Direct Connection radio button) Please help me to overcome this problem. My Platform Builder is v4.2. All your helps are appreciated. Jason
  • 2. difference among "HalTranslateBusAddress","TransBusAddrToStatic"."HalTranslateSystemAddress"...
    same as the topic
  • 3. screen rotation problem with sa_lcd2 display driver !!!
    Hi all, I'm using the sa_lcd2 display driver and I'm trying to rotate the screen 180 degrees. Only the mouse is rotated and draw 180 degrees, but everything (background, icon, etc) is rotated... but are not drawn 180 degrees!!! What am I missing here!!! I used HKEY_LOCAL_MACHINE\SYSTEM\GDI\ROTATION registry key to set the angle of rotation. I'd go through the debug and found out that it's not setting the screen rotation value with "DRVESC_SETSCREENROTATION" in the "DrvEscape()" function!! It only retrieves information the screen rotation value!! Can somebody PLEASE help me.. . ;-9 Thanks, Eduardo Kelly
  • 4. Does CE.NET support FAT32?
    Hi! I have strange problem with my HDD under CE.NET When I'm using FAT32 partition, WriteFile function hungs up on buffers, larger then aproximetly 500-600 bytes, when they are created from stack: f() { char buffer[1000]; WriteFile(...buffer...); <- hung up every time } but f() { char* buffer = new char[1000]; WriteFile(...buffer...); <- works fine } Using FAT16 partition (part size is 2Gb) I havnt any problems with disk writing! So question, does WINCE.NET support FAT32 correctly?? What is the difference for WriteFile function, if buffer is created from stack or from heap?? Strange... Thanks!
  • 5. language support files in windows ce?
    hello, recently I bought my own PPC(yeah! I develop on wince but I never use a PDA!) and it's a english machine but my mother tong is chinese. wince is a unicode OS and people are doing system file replace to enable chinese text display. all i can find online are end user ideas they are not working too well. I wonder if there is any professional ideas are here?

Linking Error

Postby TWFuaXNo » Tue, 25 Oct 2005 10:29:09 GMT

Dear Sir
 I am having a Driver at WinCE...\Drivers\Mydriver . In this driver file 
(.cpp) i am refering to another T1.c file functions . To compile this file  
along with driver file i modified sources file and added T1.c  in the list of 
sources = . 
When i build this driver file my T1.c also get compiled . But it's giving 
linking error .

MyDriver file(.cpp) refers to some functiions defined in T1.c file ..showing 
unresolved external symbols.

Please tell me ,how can we remove this error .

Regards
Manish 

Re: Linking Error

Postby Tom Gensel (eMVP) » Tue, 25 Oct 2005 12:25:01 GMT

Are you providing C linkage declarations for the functions you are trying to 
call?  The C++ naming convention is different from that of C.  When 
compiling the .CPP file, the compiler expects that the function names 
referenced within have been subjected to C++ name mangling, but they have 
not since they live in a C source file.  To resolve this, in your .CPP file, 
or in a header file included by your C++ file, provide linking declarations 
of the functions that live in T1.c with 'extern "C"' qualifiers:

'extern "C"  int myFunc(void)'.

You can also use extern "C" {        } around multiple declarations:

extern "C"
{
    void MyFunc1(void);
    void MyFunc2(int x);
}

If you do this in a header file shared by both C and C++ files, you can 
bracket the extern "C" with a #ifdef _cplusplus:

#ifdef _cplusplus
extern "C"
{
#endif

// List your C file declarations here

#ifdef _cplusplus
}
#endif

This will ensure that the compiler always treats the function names with "C" 
language linkage and does not try to mangle them.  You should have noticed 
that the unresolved external messages you saw are showing names that have 
been mangled beyond the standard underscore "_" prefix added by the C 
compiler.

Tom Gensel (eMVP)



Re: Linking Error

Postby TWFuaXNo » Tue, 25 Oct 2005 12:55:03 GMT

Thanks for the reply 
I tried as per your suggestion it is giving error 
error C2732: linkage specification contradicts earlier specification for 
'InitTouchPanel'

please suggest 
Regards
Manish 





Re: Linking Error

Postby Tom Gensel (eMVP) » Tue, 25 Oct 2005 13:23:01 GMT

Make sure you are specifying the extern "C" declaration within the .cpp file 
and not the .c file.  If you're doing it from a header file included by both 
files, then you need to use the #ifdef _cplusplus method I gave in my 
earlier post.  Also, make sure you only have one declaration for the 
function within the .cpp file's view.  This error means that the compiler is 
seeing two declarations (or a declaration and a definition) of a function 
with different linkage specification.  You need to remove the erroneous one.

Tom Gensel (eMVP) 



Similar Threads:

1.Email Link & Mail box link error

2.wxMac: Link errors when linking wx_MACH_d.lib with CW 8.3 and wxMac 2.5.3

Hi all,
I'm building a Mach-O static library which uses the static library
version of wxMac. I did this under Carbon with 2.4.2 and it worked
fine. In moving to Mach-O, I now get every Mac Toolbox call that wxMac
uses as "undefined" in the linker (eg: XorRgb, CreateTabsControl,
etc.). I seem to have all the runtime libaries in the main wxMac
project so they SHOULD be in the static wxMac library that I built.
However, when I build my static lib that wxMac is included with, I get
over 100 link errors. I dont understand why this would happen if the
runtime libaries are supposedly built in with the Mach-O lib project.
Any ideas?

Mike

3.Linking Error error LNK2001 and LNK1120

 am programming in Microsoft Visual c++ 6.0 and I have two linking
errors that I do not know what they mean. Can someone please help.


Linking...
main.obj : error LNK2001: unresolved external symbol _WTSQueryUserToken@8
Debug/session.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

session.exe - 2 error(s), 0 warning(s)

4.Linking error-"fatal error LNK1314"

I've never used the ENTRY_END macro, check if it
is not expecting any extra args (label names etc)...
or just get rid of it, you are not going to return from
the OALStartUp anyway so no return code needed.



TDC wrote:
> Hi,
> 
> I did the changes to the code as you said. 
> Still the problem persists. The same error is generated again. 
> 
> Regarding the sequence of the instructions you mentioned, in my code 
> they are in the correct order as you said. I'm sorry, I typed it wrongly when
> posting it to the groups.
> 
> regards,
> TDC
> 
> 
> 
> "voidcoder" wrote:
> 
>> Also, you must set R0 to point the address table
>> *before* you are jumping to the KernelStart and
>> not after. So replace
>>
>> 	bl      KernelStart
>> 	add     r0, pc, #g_oalAddressTable - (. + 8)
>>
>> with
>>
>> 	add     r0, pc, #g_oalAddressTable - (. + 8)
>> 	bl      KernelStart
>>
>>
>> --
>> Oleg
>>
>>
>> voidcoder wrote:
>>> Try replacing TEXTAREA with STARTUPTEXT macro and
>>> move oemaddrtab_cfg.inc beyond the code. Something
>>> like
>>>
>>>
>>>         IMPORT  KernelStart
>>>
>>>         STARTUPTEXT
>>>
>>>         LEAF_ENTRY OALStartUp
>>>
>>>         ; Compute the OEMAddressTable's physical address and
>>>         ; load it into r0. KernelStart expects r0 to contain
>>>         ; the physical address of this table. The MMU isn't
>>>         ; turned on until well into KernelStart.
>>>
>>>         bl      KernelStart
>>>         add     r0, pc, #g_oalAddressTable - (. + 8)
>>>        
>>>         ENTRY_END
>>>
>>>     ; Include memory configuration file with g_oalAddressTable
>>>         INCLUDE oemaddrtab_cfg.inc
>>>
>>>         END
>>>
>>>
>>> -- 
>>> Oleg
>>>
>>>
>>> TDC wrote:
>>>> Hi,
>>>>
>>>> I'm building my sources to create oal.exe in Wince6.0.
>>>>
>>>> All the neccessary libraries are builted properly. But, when linking 
>>>> the libraries to create the oal.exe, a link error is generated. The 
>>>> error is "BUILD: [01:0000000164:ERRORE] oal.lib(OALStartUp.obj) : 
>>>> fatal error LNK1314: corrupt or invalid COFF symbol table (undefined 
>>>> static or label symbol)" .
>>>>
>>>> The file contents of the OALStartup.obj are 
>>>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
>>>>
>>>> ;;
>>>> ;; FILE NAME:    OALStartUp.s    ;;
>>>> ;; DESCRIPTION:  This Assembly file contains entry point 
>>>> ;;               to KernelStart
>>>> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
>>>>
>>>>
>>>>
>>>>         INCLUDE kxarm.h
>>>>         INCLUDE omap5912_reg_offset.inc
>>>>         INCLUDE image_cfg.inc
>>>>                 IMPORT  KernelStart
>>>>                 TEXTAREA
>>>>                         ; Include memory configuration file with 
>>>> g_oalAddressTable
>>>>         INCLUDE oemaddrtab_cfg.inc
>>>>                 LEAF_ENTRY OALStartUp
>>>>                 ; Compute the OEMAddressTable's physical address and 
>>>>         ; load it into r0. KernelStart expects r0 to contain
>>>>         ; the physical address of this table. The MMU isn't         ; 
>>>> turned on until well into KernelStart.                        bl      
>>>> KernelStart                        add     r0, pc, #g_oalAddressTable 
>>>> - (. + 8)                      
>>>>         ENTRY_END
>>>>         END
>>>>
>>>> ;------------------------------------------------------------------------------ 
>>>>
>>>>
>>>>  The file contents of the oemaddrtab_cfg.inc file are ;///*
>>>> ;//******************************************************************************* 
>>>>
>>>> ;//*
>>>> ;//*
>>>> ;//* FILE NAME: oemaddrtab_cfg.h
>>>> ;//*
>>>> ;//* DESCRIPTION:  This file is used to define g_oalAddressTable. This 
>>>> table ;//*           is passed to KernelStart to estabilish physical 
>>>> to virtual
>>>> ;//*           memory mapping. This table is used also in IOMEM OAL 
>>>> module
>>>> ;//*               to map between physical and virtual memory 
>>>> addresses via ;//*           OALPAtoVA/OALVAtoPA functions. 
>>>> ;//*           This header file contains the definitions of Virtual 
>>>> and ;//*           Physical Address mapping
>>>> ;//*
>>>> ;//******************************************************************************* 
>>>>
>>>> ;//*/
>>>>
>>>> ;------------------------------------------------------------------------------ 
>>>>
>>>>
>>>> ; Export Definition
>>>>
>>>>         EXPORT  g_oalAddressTable[DATA]
>>>>
>>>> ;------------------------------------------------------------------------------ 
>>>>
>>>> ;
>>>> ; TABLE FORMAT
>>>> ;       cached address, physical address, size
>>>> ;------------------------------------------------------------------------------ 
>>>>
>>>>
>>>> g_oalAddressTable
>>>>
>>>>     DCD VA_BASE0, PA_BASE0, VA_SIZE0
>>>>     DCD VA_BASE1, PA_BASE1, VA_SIZE1
>>>>     DCD VA_BASE2, PA_BASE2, VA_SIZE2
>>>>     DCD VA_BASE3, PA_BASE3, VA_SIZE3
>>>>     DCD VA_BASE4, PA_BASE4, VA_SIZE4
>>>>     DCD VA_BASE5, PA_BASE5, VA_SIZE5
>>>>     DCD VA_BASE6, PA_BASE6, VA_SIZE6
>>>>     DCD VA_BASE7, PA_BASE7, VA_SIZE7
>>>>
>>>>     DCD 0x00000000,   0x00000000,  0            ; End of Table.
>>>>
>>>> ;------------------------------------------------------------------------------ 
>>>>
>>>>
>>>>         END
>>>>
>>>> Could somebody please resolve this error.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>

5.Install Link Error [Error number: 0x800A0046]

When I click on "Express Install" or "Custom Install" I recieve the error:  
[Error number: 0x800A0046] 

I've tried using both resolutions for the problem

Problem description

This error can occur if the user logon account is part of the Guests account 
or a limited-user acount, if the security descriptor does not allow have the 
Authenticated Users to run Windows Update, or if the Impersonate a client 
after authentication policy is missing Service and Administrators from the 
Users and Groups list. 


Any Help appreciated


6. CWMPPlayer4::GetCurrentMedia link error



Return to windows ce

 

Who is online

Users browsing this forum: No registered users and 65 guest