# Hello World Sample,Building

**URL:** <https://forum.sierrawireless.com/t/hello-world-sample-building/689>\
**Category:** Open AT\
**Created:** [September 14, 2006, 6:04pm UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689 "2006-09-14T18:04:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ergunehm](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@ergunehm](https://forum.sierrawireless.com/u/ergunehm)\
**Post date:** [September 14, 2006, 6:04pm UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689/1 "2006-09-14T18:04:39Z")

</div>

Hi dear friends,

I’m trying building a sample which comes with Open AT SDK.You know it, Hello World sample.

I started with Tutorial and want to generate and run Open AT applications in remote and target mode.Firstly , I used Open AT Project Wizard to produce an application and then Visual C++ to build Hello-World and Hello-World\_rte to handle binary data in .dwl format.But at this point Visual C++ gives building errors like:

Compiling…  
hello\_world.c  
Linking…  
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification  
LINK : error LNK2001: unresolved external symbol \_opecCustomerTaskInit  
hello\_world.obj : error LNK2001: unresolved external symbol \_adl\_atSendResponse  
hello\_world.obj : error LNK2001: unresolved external symbol \_adlint\_osDebugTrace  
hello\_world.obj : error LNK2001: unresolved external symbol \_adl\_tmrSubscribe  
rte/vc6/Debug/Hello\_World\_rte.dll : fatal error LNK1120: 4 unresolved externals  
Error executing link.exe.

Hello\_World\_rte.dll - 5 error(s), 1 warning(s)

What must be done?What is the reason for these error messages?Because of I’m new with Open AT and wavecom cannot guess what can be the reason?

If you help,I will be very happy.I cannot go on now because of this mistake.

Best Regards…

ErgÃ¼n…

---

<div class="post-metadata">

**Author:** ![gmnvh](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gmnvh](https://forum.sierrawireless.com/u/gmnvh)\
**Post date:** [September 15, 2006, 1:45pm UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689/2 "2006-09-15T13:45:23Z")

</div>

Ergun,

What version of Open AT are you using ?

You got the errors when compiling for remote mode, right ?

What happens when you compile for target mode ?

Gus

---

<div class="post-metadata">

**Author:** ![ergunehm](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@ergunehm](https://forum.sierrawireless.com/u/ergunehm)\
**Post date:** [September 15, 2006, 3:40pm UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689/3 "2006-09-15T15:40:07Z")

</div>

> [@gmnvh](#):
>
> Ergun,
> 
> What version of Open AT are you using ?
> 
> You got the errors when compiling for remote mode, right ?
> 
> What happens when you compile for target mode ?
> 
> Gus

Hi Gus,

I’m using version V400.a03 of Open AT.Yes that errors for remote mode.

When I compile in target mode , binary .dwl file occurs but also in this mode visual C++ gives error and warning messages.All the build message in target mode below:

Build messages in target mode:

--------------------Configuration: Hello\_World - Win32 Wismo\_Target--------------------

* * *

## Software Generation Toolkit

SGT\_VER = v1.2.11  
SGT\_DIR = /cygdrive/C/OpenAT/Tools/SGT/v1.2.11  
Scripts path for SGT :  
/cygdrive/C/OpenAT/Tools/SGT/v1.2.11/script\_sgt

Type help\_sgt for a list of SGT commands

* * *

Check environment settings…

```
Launch a full library or binary process

```

* * *

## … Dependency graph is being built … ../out/gcc\_Hello\_World\_H.dep

… Build sources filtering rules for gcc\_Hello\_World\_H  
../out/gcc\_Hello\_World\_H.flt

* * *

* * *

Get ../../src/hello\_world.c hello\_world.c  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_global.h adl\_global.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/WmHeader/wm\_types.h wm\_types.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/WmHeader/wm\_stdio.h wm\_stdio.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/WmHeader/wm\_remote.h wm\_remote.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/WmHeader/wm\_list.h wm\_list.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/WmHeader/wm\_snd.h wm\_snd.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_str.h adl\_str.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_port.h adl\_port.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_at.h adl\_at.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_traces.h adl\_traces.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_memory.h adl\_memory.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_error.h adl\_error.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_flash.h adl\_flash.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_gpio.h adl\_gpio.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_bus.h adl\_bus.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_fcm.h adl\_fcm.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_AppliInit.h adl\_AppliInit.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_UnSoHandler.h adl\_UnSoHandler.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_RspHandler.h adl\_RspHandler.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_CmdHandler.h adl\_CmdHandler.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_CmdStackHandler.h adl\_CmdStackHandler.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_TimerHandler.h adl\_TimerHandler.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_sim.h adl\_sim.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_sms.h adl\_sms.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_call.h adl\_call.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_gprs.h adl\_gprs.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_safe.h adl\_safe.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_ad.h adl\_ad.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_gps.h adl\_gps.h  
Use YTPP  
Get C:/OpenAT/V400.a03/TgtGen/Adl/Headers/adl\_rtc.h adl\_rtc.h  
Use YTPP  
… Compiling hello\_world.c

* * *

```
Copy all needed library and object files

```

## Make links /cygdrive/C/OpenAT/V400.a03/TgtGen/Adl/Library/gcc\_wmadl\_4.0.0.0.0.lib ../out/gcc\_wmadl\_4.0.0.0.0.lib

… Link step in progress …

… Link gcc\_Hello\_World\_H.bin …

```
Extract gcc_Hello_World_H.bin from gcc_Hello_World_H.axf (or from gcc_Hello_World_H.elf if Gcc ARM compiler is used)

Update symbol file -> ../out/s
Compress gcc_Hello_World_H.bin to gcc_Hello_World_H.wpb for DWLWIN application
Compress gcc_Hello_World_H.axf to gcc_Hello_World_H_axf.zip in ZIP format

```

adding: gcc\_Hello\_World\_H.axf (deflated 70%)

* * *

… Make TMT directory …

Make links ../out/s ../out/tmt/symbolfiles/s

Create ../out/tmt/config/DiagnoseTips.ini  
Create ../out/tmt/config/MokaWatches.ini  
Create ../out/tmt/config/RemoteDefs.ini

Create ../out/tmt/gcc.wks

No remote trace file found

Create TMT archive file

ls: ../out/pro-lib.bin: No such file or directory  
ls: ../out/pro-lib.bin: No such file or directory

```
Make an archive file for TMT application

```

zip warning: name not matched: ../out/tmt/e2p\_csn.cso  
zip error: Nothing to do! (../out/tmt/zip\_tmt.zip)  
zip warning: name not matched: ../out/tmt/backtraces.axf  
zip error: Nothing to do! (../out/tmt/zip\_tmt.zip)  
zip warning: name not matched: ../out/tmt/backtraces64k.axf  
zip error: Nothing to do! (../out/tmt/zip\_tmt.zip)  
zip warning: name not matched: ../out/tmt/symbolfiles/s64k  
zip warning: name not matched: ../out/tmt/symbolfiles/e2p.h  
adding: s (deflated 68%)  
enter new zip file comment (end with .):  
current zip file comment is:  
[Binary Information]  
Stack Version = Open-AT  
Customer Version = gcc  
Binary Name = pro-lib.bin  
Size =  
Date = Fri Sep 15 2006  
Time = 00:00:00  
enter new zip file comment (end with .):  
current zip file comment is:  
[Binary Information]  
Stack Version = Open-AT  
Customer Version = gcc  
Binary Name = pro-lib.bin  
Size =  
Date = Fri Sep 15 2006  
Time = 00:00:00  
enter new zip file comment (end with .):  
adding: DiagnoseTips.ini (deflated 87%)  
current zip file comment is:  
[Binary Information]  
Stack Version = Open-AT  
Customer Version = gcc  
Binary Name = pro-lib.bin  
Size =  
Date = Fri Sep 15 2006  
Time = 00:00:00  
enter new zip file comment (end with .):  
adding: MokaWatches.ini (deflated 67%)  
current zip file comment is:  
[Binary Information]  
Stack Version = Open-AT  
Customer Version = gcc  
Binary Name = pro-lib.bin  
Size =  
Date = Fri Sep 15 2006  
Time = 00:00:00  
enter new zip file comment (end with .):  
adding: RemoteDefs.ini (deflated 74%)  
current zip file comment is:  
[Binary Information]  
Stack Version = Open-AT  
Customer Version = gcc  
Binary Name = pro-lib.bin  
Size =  
Date = Fri Sep 15 2006  
Time = 00:00:00  
enter new zip file comment (end with .):  
Rename ../out/tmt/zip\_tmt.zip ../out/tmt/gcc.zip

* * *

Keep only the TMT archive file in ../out/tmt

Remove ../out/tmt/e2p\_csn.cso  
Remove ../out/tmt/sys\_ftr.ho  
Remove ../out/tmt/wm\_ftr.ho  
Remove ../out/tmt/remtrace.csv  
Remove ../out/tmt/backtraces.axf  
Remove ../out/tmt/backtraces64k.axf  
Remove ../out/tmt/remtrace\_full.csv  
Remove ../out/tmt/symbolfiles directory  
Remove ../out/tmt/config directory

… Create binary in X-MODEM format from gcc\_Hello\_World\_H.bin …

Add a checksum to gcc\_Hello\_World\_H.sgt  
(AddCheck Version v2.0.4 Copyright (c) WAVECOM) [Feb 14 2003, 15:50:57]  
Time modified : Fri Sep 15 16:04:12 2006

* * *

… Build gcc\_Hello\_World\_H.dwl …

genBin : Version v1a06 Copyright (c) WAVECOM  
genBin : No Error

* * *

* * *

Cleaning temporary files (\*.tmp / \*.trc)

* * *

## Generation done with SGT v1.2.11 Binary files created : gcc\_Hello\_World\_H.bin pro-dwl.bin Binary files in Xmodem format : gcc\_Hello\_World\_H.dwl Compiler keyword : gcc\_arm Compiler release : GCC ARM C compiler path : /cygdrive/C/OpenAT/Tools/GCC/4.0.1.0/bin/arm-elf-gcc ASM compiler path : /cygdrive/C/OpenAT/Tools/GCC/4.0.1.0/bin/arm-elf-gcc customer release : gcc Name of the current directory : gcc Log file : ../out/gcc\_Hello\_World\_H\_status.log Release of the environement : CYGWIN\_NT-5.1 MOBIARTS 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin

```
Build an X-MODEM binary : 'gcc_Hello_World_H.wpb.dwl'

```

… Convert gcc\_Hello\_World\_H.wpb in X-MODEM format …

genBin : Version v1a06 Copyright (c) WAVECOM  
genBin : No Error

… Build gcc\_Hello\_World\_H.wpb.dwl …

* * *

AXFshrinker Version 1.0.0.1 ( Aug 23 2002 , 17:44:58 )

* * *

```
Find errors occurred when using SGT

```

Analyze errors in Log files

## WARNING : misc\_status.log is incomplete. Check manually if any errors exist

Analyze errors in tmp files if they exists.

* * *

## Libraries available in out directory : gcc\_wmadl\_4.0.0.0.0.lib,

* * *

```
End process.

```

adding: backtraces.axf (deflated 74%)  
Hello\_World - 3 error(s), 6 warning(s)

---

<div class="post-metadata">

**Author:** ![walter\_senekal](https://avatars.discourse-cdn.com/v4/letter/w/f05b48/32.png) [@walter\_senekal](https://forum.sierrawireless.com/u/walter_senekal)\
**Post date:** [September 17, 2006, 11:18am UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689/4 "2006-09-17T11:18:57Z")

</div>

Hi Ergun  
It is normal to get these errors.

> [@](#):
>
> zip warning: name not matched: …/out/tmt/e2p\_csn.cso  
> zip error: Nothing to do! (…/out/tmt/zip\_tmt.zip)  
> zip warning: name not matched: …/out/tmt/backtraces.axf  
> zip error: Nothing to do! (…/out/tmt/zip\_tmt.zip)  
> zip warning: name not matched: …/out/tmt/backtraces64k.axf  
> zip error: Nothing to do! (…/out/tmt/zip\_tmt.zip)  
> zip warning: name not matched: …/out/tmt/symbolfiles/s64k  
> zip warning: name not matched: …/out/tmt/symbolfiles/e2p.h

it os to do with the zipping of the workspace files.  
I would advise you to get the latest beta V4.10 build7  
Best regards  
Walter

---

<div class="post-metadata">

**Author:** ![ergunehm](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@ergunehm](https://forum.sierrawireless.com/u/ergunehm)\
**Post date:** [September 17, 2006, 6:15pm UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689/5 "2006-09-17T18:15:25Z")

</div>

> [@walter\_senekal](#):
>
> Hi Ergun  
> It is normal to get these errors.
> 
> > [@](#):
> >
> > zip warning: name not matched: …/out/tmt/e2p\_csn.cso  
> > zip error: Nothing to do! (…/out/tmt/zip\_tmt.zip)  
> > zip warning: name not matched: …/out/tmt/backtraces.axf  
> > zip error: Nothing to do! (…/out/tmt/zip\_tmt.zip)  
> > zip warning: name not matched: …/out/tmt/backtraces64k.axf  
> > zip error: Nothing to do! (…/out/tmt/zip\_tmt.zip)  
> > zip warning: name not matched: …/out/tmt/symbolfiles/s64k  
> > zip warning: name not matched: …/out/tmt/symbolfiles/e2p.h
> 
> it os to do with the zipping of the workspace files.  
> I would advise you to get the latest beta V4.10 build7  
> Best regards  
> Walter

Thanks Walter,

You are right may be zip errors are normal but I downloaded .dwl file into wireless CPU Q2686 and run it with at+wopen=1 as told in tutoria and manual but nothing happened.That is,I could not see “Hello World from Open AT” message on the screen.

How can I get the latest version, V4.10?From where?

A request:Could you please send me as an attached file, Hello\_World.dwl binary file which you produced on your computer.I want to see a running code in wireless CPU.Mines is not working.

---

<div class="post-metadata">

**Author:** ![nic26](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nic26](https://forum.sierrawireless.com/u/nic26)\
**Post date:** [September 28, 2006, 7:49pm UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689/6 "2006-09-28T19:49:34Z")

</div>

Hi Ergunehm!  
If you have SDK, maybe you have a ready binary for this sample.  
See drive:\OpenAT\V400.a03\Samples\adl\generic\Hello\_World\gcc\out  
I have it.  
I have the same LINK ERRORS with the same version of Open AT - V4.00.a03 (with Q2686H DK) with attempt to build Hello World sample  
in remote mode.  
Attempt to build application in target mode more successfull and make files for target.  
gcc\_Hello\_World\_H.dwl  
gcc\_Hello\_World\_H.wpb.dwl  
( for GCC - compiler, I Have not ARM)

IDE Visual C++ 6.0 give some error during build process,  
(Visual C++ 2003 no one), but both makes target files.  
Errors in remote mode caused (I think) by missing library (rte\_…) or reference to it .

What is this library ? I didn’t find it or reference to it in documentation.  
project in VC 6.0 has reference to additional library path  
…\TgtGen\Rte\_Lib directory

and I have not such directory in my installation

I have only:  
D:\OpenAT\V400.a03\TgtGen\Library  
arm\_wmopenat\_4.0.0.0.0.lib  
gcc\_wmopenat\_4.0.0.0.0.lib  
(rte\_ … - maybe missed)

D:\OpenAT\V400.a03\TgtGen\Adl\Library  
gcc\_wmadl\_4.0.0.0.0.lib  
arm\_wmadl\_4.0.0.0.0.lib  
(rte\_ … - maybe missed)

D:\OpenAT\V400.a03\TgtGen\Add-ons\TCPIP  
arm\_eDLib\_310.lib  
gcc\_eDLib\_310.lib  
rte\_eDLib\_310.lib - present !!!

I didn’t see any other versions of Open AT. Maybe, they have such library.  
All my binary: builded and from distributive works properly  
and sends “Hello Word” to terminal.  
Anybody have any ideas/information? (about RTE\_\* library).  
Documentation in my Open AT disk (“V4r00.a03” Label on disk box)  
not coordinated - differ in versions.  
For example: Getting Started with Open AT 3.02.

---

<div class="post-metadata">

**Author:** ![sameer](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@sameer](https://forum.sierrawireless.com/u/sameer)\
**Post date:** [September 29, 2006, 6:12am UTC](https://forum.sierrawireless.com/t/hello-world-sample-building/689/7 "2006-09-29T06:12:29Z")

</div>

I am using open at 3.01. For target mode there r no problems. I sucessfully downloaded the .dwl file n hello world is working fine. But for remote mode while building i get error hello\_world\_rte.dll not found. I dont know what is the problem. Plz help

Regards,  
Sameer.
