libogc icon indicating copy to clipboard operation
libogc copied to clipboard

Linking problem with net_deinit function on GameCube

Open Crayon2000 opened this issue 1 year ago • 1 comments

I think that void net_deinit(void); in network.h should be within the #ifdef HW_RVL / #endif block just over it.

The code is only defined in network_wii.c and compiling my code for GameCube will generate this

warning: undefined reference to `net_deinit'

Maybe (not sure), the other solution is to add this to lwip\network.c:

void net_deinit(void) {
	return;
}

Crayon2000 avatar Dec 28 '24 23:12 Crayon2000

to make applications cross platform between GC and Wii i would suggest that adding a net_deinit in the GC code is a better solution. the application doesn't need to have a ifdef for that stuff imo.

ill have to look into what the net_init does in the gc code (lwip)

DacoTaco avatar Dec 29 '24 10:12 DacoTaco