# Compilation error for XIOS training case

**URL:** <https://nemo-ocean.discourse.group/t/compilation-error-for-xios-training-case/294>\
**Category:** Uncategorized\
**Tags:** XIOS\
**Created:** [5 May 2022 10:52 UTC](https://nemo-ocean.discourse.group/t/compilation-error-for-xios-training-case/294 "2022-05-05T10:52:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangy](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@wangy](https://nemo-ocean.discourse.group/u/wangy)\
**Post date:** [5 May 2022 10:52 UTC](https://nemo-ocean.discourse.group/t/compilation-error-for-xios-training-case/294/1 "2022-05-05T10:52:44Z")

</div>

Dear all  
I run the XIOS training cases ([svn - Revision 2326: /XIOS/xios\_training](http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/xios_training/)) with XIOS 2.0. The cases of hand-on 1 to hand-on 1 can be successfully make and run, but when I make hand-on 7, an error message appears as follows:

```nohighlight
[sio_xmzhang_4@ln0%tianhe2-C hands-on-7]$ make
mpif90 -I/WORK/sio_xmzhang_4/Build_NEMO/xios-2.0/inc -I/WORK/app/netcdf/4.4.1/03-CF-gcc-5.4.0-par/include -c generic_testcase.f90
mpif90 -o generic_testcase.exe generic_testcase.o -L/WORK/sio_xmzhang_4/Build_NEMO/xios-2.0/lib -lxios -L/WORK/app/netcdf/4.4.1/03-CF-gcc-5.4.0-par/lib -lnetcdff -lstdc++
generic_testcase.o: In function `init_domain_dynamico.3598':
generic_testcase.f90:(.text+0xd088): undefined reference to `xios_get_current_context_'
collect2: error: ld returned 1 exit status
make: *** [generic_testcase] Error 1
rm generic_testcase.o

```

I’d appreciate any suggestions as to how to solve this problem.  
Thanks

Wangy

---

<div class="post-metadata">

**Author:** ![ntmlod](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/ntmlod/32/6_2.png) [@ntmlod](https://nemo-ocean.discourse.group/u/ntmlod)\
**Post date:** [5 May 2022 11:27 UTC](https://nemo-ocean.discourse.group/t/compilation-error-for-xios-training-case/294/2 "2022-05-05T11:27:15Z")

</div>

Dear @wangy,

Your problem is strictly not related to NEMO so it is out-topic in the context of this forum.  
To reach XIOS developers, I suggest to post your support request on the XIOS users mailing list : [xios-users@forge.ipsl.jussieu.fr](mailto:xios-users@forge.ipsl.jussieu.fr)

---

<div class="post-metadata">

**Author:** ![ntmlod](https://yyz2.discourse-cdn.com/free1/user_avatar/nemo-ocean.discourse.group/ntmlod/32/6_2.png) [@ntmlod](https://nemo-ocean.discourse.group/u/ntmlod)\
**Post date:** [5 May 2022 11:27 UTC](https://nemo-ocean.discourse.group/t/compilation-error-for-xios-training-case/294/3 "2022-05-05T11:27:28Z")

</div>


