Click here to Skip to main content
16,012,468 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x68): undefined reference to `addRoom(int (*) [4], int*)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x7f): undefined reference to `deleteRoom(int (*) [4], int*)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0xad): undefined reference to `free(int (*) [4], int)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0xc4): undefined reference to `searchRoom(int (*) [4], int)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0xdb): undefined reference to `displayRooms(int (*) [4], int)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0xf2): undefined reference to `save(int (*) [4], int)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x21f): undefined reference to `addRoom(int (*) [4], int*)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x236): undefined reference to `deleteRoom(int (*) [4], int*)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x25e): undefined reference to `free(int (*) [4], int)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x272): undefined reference to `searchRoom(int (*) [4], int)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x286): undefined reference to `displayRooms(int (*) [4], int)'
C:\Users\_______\AppData\Local\Temp\ccEjwUmX.o	Untitled3.cpp:(.text+0x29a): undefined reference to `save(int (*) [4], int)'
C:\Users\_______\Desktop\collect2.exe	[Error] ld returned 1 exit status



when I compiler the programm
can someone tell me what is the wrong??

What I have tried:

..
when I compiler the programm
can someone tell me what is the wrong??
Posted
Updated 18-Dec-17 2:06am
v2
Comments
Dave Kreskowiak 17-Dec-17 10:44am    
First, you ALWAYS assume the compiler is never wrong. It would be a serious bug in the compiler that EVERYONE gets if it is.

Next, without seeing the code you're trying to compile, it's pretty much impossible for anyone to help you.
PIEBALDconsult 17-Dec-17 11:32am    
The compiler is NEVER wrong.
Richard MacCutchan 17-Dec-17 12:10pm    
Show your code, especially where you have defined the functions that the error messages complain about.

Those are linker errors, telling you the linker is not able to find the mentioned functions. For instance in whatsource files the function addRoom(int (*) [4], int*) (the funciton signature is important) is defined?
 
Share this answer
 
Comments
neranalolh 17-Dec-17 11:26am    
(the funciton signature is important) is defined?

can you write the function signature?
CPallini 17-Dec-17 12:30pm    
I have already written it: (int (*), int*) (just the return value is missing).
The object (file) Untitled3.cpp doens't know the functions mentioned:
addRoom(int (*) [4], int*), deleteRoom(int (*) [4], int*), ...

Paste your code and we can help you. Maybe you just forget to "include" something.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900