I saw topics and microsoft official doc (https://docs.microsoft.com/en-us/cpp/build/determining-which-exporting-method-to-use), said that after we add an exporting function to our dll, we have to rebuild the DLL (logic) AND the EXE. I don't understand why they say that, after tests it is not the case, i don't have to rebuild my exe after i add functions to my dll.
My functions are exported with __declspec and there are basic C functions. They (the link) advice us to use .def file with ordinal numbers to don't have to rebuild, but even without this .def file, i don't have to rebuild.
Does __declspec also use ordinal numbers to link dll functions or does it use function naming ? Could you explain me why they say that, where am i wrong ?
Thanks