[rvm-research] Two Sharing Same Header File

Khaled Z Mahmoud <[email protected]> Sun, 3 Jun 2018 16:47:07 -0400
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <CAER=_eUR5N3E9PzgewE-bcvoUaAGFJohgLNd-iccoygvp9tbyw@mail.gmail.com>
Hi,

I have to C files tools/bootloader and they both include the same header
file.
That file includes "EXTERNAL" variables and function implementations.

When I compiled I get a lot of multiple definition errors because of two
files are including the same  header file.

I am already using the following, but till same error. Anything that could
be specific to Jikes in this case?

#ifdef K_PERF_UTIL
//Empty Space Here
#else

#define  K_PERF_UTIL
/***********************/
My header file code goes here...

#endif



-- 
Regards,
Khaled Mahmoud

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers