0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

d4.sh
gcc D_04_01.c  D_04_02.c   D_04_04.c D_04_05.c      D_04_06.c   D_04_07.c    D_04_08_1.c  D_04_08_2.c D_04_09.c  D_04_10.c    D_04_11.c   D_04_12.c  D_04_13.c  D_04_14.c D_04_support.c  D_04_system.c -o d4.exe
/*
 * Release: 2016-11-01
 *
 * Example from MISRA C:2012 ( THIS IS NOT A TEST SUITE )
 *
 * Copyright HORIBA MIRA Limited.
 *
 * See file READ_ME.txt for full copyright, license and release instructions.
 */
#include "misrac2012.h"
char * src = "D_04_01.c";

#include "mc3_types.h"
#include "mc3_header.h"

int main ( void )
{
  D_4_1 ( );
  D_4_3 ( );
  D_4_4 ( );
  D_4_5 ( );
  D_4_6 ( );
  D_4_7 ( );
  D_4_8 ( );
  D_4_9 ( );
  D_4_10 ( );
  D_4_11 ( );
  D_4_12 ( );
  D_4_13 ( );
  D_4_14 ( );

  D_4_main_support ( );
  PR1(src, s);
  return EXIT_SUCCESS;
}

/* end of D_04_system.c */
e$ ./d4.sh
/usr/bin/ld: /tmp/ccsuq8uW.o: in function `msg_body':
D_04_01.c:(.text+0x27): undefined reference to `msg_header_valid'
/usr/bin/ld: /tmp/ccsuq8uW.o: in function `D_4_1':
D_04_01.c:(.text+0x120): undefined reference to `use_float32'
/usr/bin/ld: D_04_01.c:(.text+0x12f): undefined reference to `use_float32'
/usr/bin/ld: /tmp/cc5eEmjI.o: in function `D_4_4':
D_04_04.c:(.text+0x19): undefined reference to `use_int32'
/usr/bin/ld: /tmp/ccdy4vU1.o: in function `D_4_5':
D_04_05.c:(.text+0x9f): undefined reference to `use_int32'
/usr/bin/ld: D_04_05.c:(.text+0xc2): undefined reference to `use_int32'
/usr/bin/ld: D_04_05.c:(.text+0xe5): undefined reference to `use_int32'
/usr/bin/ld: D_04_05.c:(.text+0xf4): undefined reference to `use_int32'
/usr/bin/ld: /tmp/ccv0mhGq.o: in function `D_4_6':
D_04_06.c:(.text+0x32): undefined reference to `use_char'
/usr/bin/ld: D_04_06.c:(.text+0x4b): undefined reference to `use_int32'
/usr/bin/ld: /tmp/cc5DIPCc.o: in function `D_4_7':
D_04_07.c:(.text+0x64): undefined reference to `get_uint16'
/usr/bin/ld: D_04_07.c:(.text+0x6d): undefined reference to `get_uint16'
/usr/bin/ld: D_04_07.c:(.text+0xca): undefined reference to `use_uint16'
/usr/bin/ld: /tmp/cc12KAp5.o: in function `D_4_8_1':
D_04_08_1.c:(.text+0x1c): undefined reference to `use_ptrX'
/usr/bin/ld: D_04_08_1.c:(.text+0x33): undefined reference to `use_int32'
/usr/bin/ld: /tmp/cc12KAp5.o: in function `D_4_8':
D_04_08_1.c:(.text+0x71): undefined reference to `get_ptrX'
/usr/bin/ld: D_04_08_1.c:(.text+0x7a): undefined reference to `get_ptrX'
/usr/bin/ld: /tmp/cc9djh9E.o: in function `UseObject':
D_04_08_2.c:(.text+0x48): undefined reference to `use_int32'
/usr/bin/ld: D_04_08_2.c:(.text+0x5d): undefined reference to `use_int32'
/usr/bin/ld: /tmp/cc9djh9E.o: in function `UseObject_notop':
D_04_08_2.c:(.text+0xac): undefined reference to `use_int32'
/usr/bin/ld: D_04_08_2.c:(.text+0xc1): undefined reference to `use_int32'
/usr/bin/ld: /tmp/ccm9mXym.o: in function `fn':
D_04_09.c:(.text+0x25): undefined reference to `use_uint16'
/usr/bin/ld: /tmp/ccm9mXym.o: in function `D_4_9':
D_04_09.c:(.text+0x45): undefined reference to `use_uint32'
/usr/bin/ld: /tmp/ccrKq8Ac.o: in function `D_4_10':
D_04_10.c:(.text+0xe): undefined reference to `use_int32'
/usr/bin/ld: /tmp/ccQDtGpR.o: in function `D_4_11':
D_04_11.c:(.text+0xd): undefined reference to `get_int32'
/usr/bin/ld: D_04_11.c:(.text+0x39): undefined reference to `use_int32'
/usr/bin/ld: D_04_11.c:(.text+0x3e): undefined reference to `get_int32'
/usr/bin/ld: D_04_11.c:(.text+0x58): undefined reference to `use_int32'
/usr/bin/ld: D_04_11.c:(.text+0x62): undefined reference to `use_int32'
/usr/bin/ld: /tmp/ccI2cmSN.o: in function `f':
D_04_12.c:(.text+0x36): undefined reference to `use_char_ptr'
/usr/bin/ld: /tmp/ccH09TjA.o: in function `fpair':
D_04_13.c:(.text+0xd): undefined reference to `mutex_lock'
/usr/bin/ld: D_04_13.c:(.text+0x26): undefined reference to `mutex_unlock'
/usr/bin/ld: /tmp/ccH09TjA.o: in function `D_4_13':
D_04_13.c:(.text+0x36): undefined reference to `get_int16'
/usr/bin/ld: /tmp/cc2I4HOz.o: in function `D_4_main_support':
D_04_support.c:(.text+0xe): undefined reference to `D_4_3'
/usr/bin/ld: /tmp/ccFNtuEP.o: in function `main':
D_04_system.c:(.text+0xe): undefined reference to `D_4_3'
collect2: error: ld returned 1 exit status
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?