This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Confusing undefined function which I know is defined


On 11/13/2013 04:04, awsdert wrote:
> Found part of the issue, I tried disabling the -ansi option and that got me
> further, will investigate that issue later but for now I can at least
> compile the dll.
> 
> 

-c means compile, -shared is for linking. Build sequence typically goes:

gcc -c ... file1.c
gcc -c ... file2.c
...
gcc -shared ... file1.o file2.o ...

Notice -c and -shared are not used together.

PS, Please quote your messages context properly instead of deleting
everything, it is annoying to read your messages.



Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]