public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC link error help!
@ 2021-10-11  3:23 桂永林
  2021-10-11  5:10 ` Tom Kacvinsky
  0 siblings, 1 reply; 12+ messages in thread
From: 桂永林 @ 2021-10-11  3:23 UTC (permalink / raw)
  To: gcc-help, gcc; +Cc: 李闯闯, 柳茂昕

Hello GCC,
  we use gcc compiler to complile my project on windows10 system, but it always report bellow error:


c:/program files (x86)/gnu tools arm embedded/7 2018-q2-update/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lgh3x2x_drv_co
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:151: wd6110a.elf] Error 1



 It seems that the link can not fond some lib, but the real reason is that the project path and source code file on windows environment is too long. But,if we use the same GCC version to compile my project on Linux enviroment, it can compile sucess. The GCC compiler and source code we used on Linux is same with Windos. 
 We don't know how the GCC restict the path lenth and source code file number on Windows, so we need your help us how to fix this problem?
Thanks!
OperaGui 


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-10-22  7:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11  3:23 GCC link error help! 桂永林
2021-10-11  5:10 ` Tom Kacvinsky
2021-10-11  6:43   ` LIU Hao
2021-10-11  7:57     ` 桂永林
2021-10-20 14:53     ` GCC link problem help! 桂永林
2021-10-20 16:17       ` Xi Ruoyao
2021-10-21  3:36         ` 桂永林
2021-10-21 12:04           ` Xi Ruoyao
2021-10-21 12:34             ` Jonathan Wakely
2021-10-22  3:37               ` 桂永林
     [not found]               ` <617231DF.3080808@huaqin.com>
2021-10-22  3:39                 ` 桂永林
2021-10-22  7:06                   ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).