Compiler error [message #1761135] |
Sun, 07 May 2017 18:33  |
Eclipse User |
|
|
|
Hello guys... I am totally new to TTCN3. I have a problem related TTCN3. I have a project with different folders containing TTCN3 files and the ttcn modules have the import statement to access its variables from different directory. But while compiling through command line it gives me an error stating that there is no module with the identifier __.ttcn . Can anyone guide me where i am going wrong?
[Updated on: Tue, 09 May 2017 10:27] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Compiler error [message #1761449 is a reply to message #1761410] |
Thu, 11 May 2017 05:09   |
Eclipse User |
|
|
|
Hi Avdoot,
please find attached a compressed archive with your corrected project.
The biggest problem was that you have started from one of the published projects and arbitrarily removed files, especially C/C++ files.
Both test ports and protocol modules may consist of several files, that can contain TTCN-3 or C/C++ source code. For test ports , these constitute the test port body itself; for protocol modules, these might contain the encoding/decoding functions.
After unpacking the file, please do
cd ~/bin
../src/createlink.sh
make
The files should compile and create an executable named CoAP.
This can be run with
ttcn3_start ./CoAP coap.cfg
Mind you I have not checked whether it executes correctly.
Please also check the small changes I have made ; they are a prerequisite to successful compilation.
Also, please download the CoAP conformance test in github/titan.misc and compile/execute it for reference.
Best regards
Elemer
Attachment: CoAP.tgz
(Size: 680.01KB, Downloaded 158 times)
[Updated on: Thu, 11 May 2017 06:41] by Moderator
|
|
|
|
|
Re: Compiler error [message #1761469 is a reply to message #1761464] |
Thu, 11 May 2017 08:04  |
Eclipse User |
|
|
|
Hi Avdoot,
the compiler will generate source/header files from TTCN-3 and ASN.1 files, but there are some C/C++ files that have be added separately: some codecs, test ports, external functions etc.
Best regards
Elemer
|
|
|
Powered by
FUDForum. Page generated in 0.06519 seconds