Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] what could cause a C++ program to have some bugs when compiled by someone else ?

[DiscordArchive] what could cause a C++ program to have some bugs when compiled by someone else ?

[DiscordArchive] what could cause a C++ program to have some bugs when compiled by someone else ?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
12-22-2022, 07:43 PM
#1
Archived author: Titi • Posted: 2022-12-22T19:43:02.195000+00:00
Original source

what could cause a C++ program to have some bugs when compiled by someone else ?
eintemporel's builds of noggit red have some issues with what I believe to be wrongly initialised variables, if I build it I don't have any of those bugs.
Could like a compiler default integers to 0(mine) and another to some random value ?
rektbyfaith
12-22-2022, 07:43 PM #1

Archived author: Titi • Posted: 2022-12-22T19:43:02.195000+00:00
Original source

what could cause a C++ program to have some bugs when compiled by someone else ?
eintemporel's builds of noggit red have some issues with what I believe to be wrongly initialised variables, if I build it I don't have any of those bugs.
Could like a compiler default integers to 0(mine) and another to some random value ?

rektbyfaith
Administrator
0
12-22-2022, 07:45 PM
#2
Archived author: Nix • Posted: 2022-12-22T19:45:59.720000+00:00
Original source

Compiler version
rektbyfaith
12-22-2022, 07:45 PM #2

Archived author: Nix • Posted: 2022-12-22T19:45:59.720000+00:00
Original source

Compiler version

rektbyfaith
Administrator
0
12-22-2022, 07:46 PM
#3
Archived author: Nix • Posted: 2022-12-22T19:46:01.895000+00:00
Original source

Different compiler
rektbyfaith
12-22-2022, 07:46 PM #3

Archived author: Nix • Posted: 2022-12-22T19:46:01.895000+00:00
Original source

Different compiler

rektbyfaith
Administrator
0
12-22-2022, 07:46 PM
#4
Archived author: Nix • Posted: 2022-12-22T19:46:03.796000+00:00
Original source

Compiler flags
rektbyfaith
12-22-2022, 07:46 PM #4

Archived author: Nix • Posted: 2022-12-22T19:46:03.796000+00:00
Original source

Compiler flags

rektbyfaith
Administrator
0
12-22-2022, 08:11 PM
#5
Archived author: Titi • Posted: 2022-12-22T20:11:31.442000+00:00
Original source

if so would defaulting all the values in the header files fix it for all compilers ?
rektbyfaith
12-22-2022, 08:11 PM #5

Archived author: Titi • Posted: 2022-12-22T20:11:31.442000+00:00
Original source

if so would defaulting all the values in the header files fix it for all compilers ?

rektbyfaith
Administrator
0
12-22-2022, 08:16 PM
#6
Archived author: Nix • Posted: 2022-12-22T20:16:26.565000+00:00
Original source

It could yes
rektbyfaith
12-22-2022, 08:16 PM #6

Archived author: Nix • Posted: 2022-12-22T20:16:26.565000+00:00
Original source

It could yes

rektbyfaith
Administrator
0
12-22-2022, 08:16 PM
#7
Archived author: Nix • Posted: 2022-12-22T20:16:32.680000+00:00
Original source

Especially between debug & release builds
rektbyfaith
12-22-2022, 08:16 PM #7

Archived author: Nix • Posted: 2022-12-22T20:16:32.680000+00:00
Original source

Especially between debug & release builds

rektbyfaith
Administrator
0
12-22-2022, 08:16 PM
#8
Archived author: Nix • Posted: 2022-12-22T20:16:40.421000+00:00
Original source

In debug all variables are usually auto intialized
rektbyfaith
12-22-2022, 08:16 PM #8

Archived author: Nix • Posted: 2022-12-22T20:16:40.421000+00:00
Original source

In debug all variables are usually auto intialized

rektbyfaith
Administrator
0
12-22-2022, 08:16 PM
#9
Archived author: Nix • Posted: 2022-12-22T20:16:42.152000+00:00
Original source

but not in release
rektbyfaith
12-22-2022, 08:16 PM #9

Archived author: Nix • Posted: 2022-12-22T20:16:42.152000+00:00
Original source

but not in release

rektbyfaith
Administrator
0
12-23-2022, 07:13 AM
#10
Archived author: Skarn • Posted: 2022-12-23T07:13:16.443000+00:00
Original source

If something behaves differently under different compilers or release vs debug, that means there is undefined behavior in the code somewhere
rektbyfaith
12-23-2022, 07:13 AM #10

Archived author: Skarn • Posted: 2022-12-23T07:13:16.443000+00:00
Original source

If something behaves differently under different compilers or release vs debug, that means there is undefined behavior in the code somewhere

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)