C
- voluntas
- @ignis_fatuus
- ブン
- @Linda_pp
- 清楚なC++メイドBOT
- @tzik_tack
- 長谷川一輝
- wraith13
- @jj1bdx
- @cpp_akira
- 安藤敏彦
- @srz_zumix
- Siv3D
- takezoh
- まろ
- @okdshin
- @hnokx
- @ishidakei
- @take_cheeze
- TAKEI Yuya
- @mumumu
- I (@wx257osn2)
- Tommy6
- @tyottyoworks
- ___shanon
- わたやん
- @KorekaraSEDB
- @kariya_mitsuru
- @ciniml
- @beam2d
- @grafi_tt
- @nekketsuuu
- LouiS0616
- @volanja
- 大鎌広
- むてら
- ガチKGB
- 三重野賢人
x
15
1
void f1(const double *a, const double *b);
2
3
void f2(const double*a, const double*b)
4
{
5
f1(a,b);
6
}
7
8
int main()
9
{
10
double a, b;
11
//a = , b = . /*initialization */
12
a = 0, b = 0;
13
f1(&a,&b);
14
}
15
$ gcc prog.c -Wall -Wextra -std=gnu11
Start
/tmp/ccYIhfDu.o: In function `f2': prog.c:(.text+0x1f): undefined reference to `f1' /tmp/ccYIhfDu.o: In function `main': prog.c:(.text+0x4f): undefined reference to `f1' collect2: error: ld returned 1 exit status
1
Finish