dlang-community / Pegged

A Parsing Expression Grammar (PEG) module, using the D programming language.
534 stars 66 forks source link

DUB build broken #131

Closed mpdn closed 10 years ago

mpdn commented 10 years ago

When using DUB to compile a project with Pegged as a dependency, the following linking error occurs:

Building configuration "application", build type debug
Compiling...
Linking...
.dub/build/application-debug-x86_64-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/compiler.o:(.data+0xb48): undefined reference to `_D6pegged8examples10arithmetic12__ModuleInfoZ'
collect2: error: ld returned 1 exit status
--- errorlevel 1
Error: Link command failed with exit code 1

This might be because of the changes made in commit 4f8d199e214ee7dc1f35a10a837e18589b76f3e3.

PhilippeSigaud commented 10 years ago

Yes indeed. I didn't check that grammartester imported examples/arithmetic. I don't like this dependency. Hmm.

On Tue, Feb 18, 2014 at 9:00 PM, Mike Pedersen notifications@github.comwrote:

When using DUB to compile a project with Pegged as a dependency, the following linking error occurs:

Building configuration "application", build type debug Compiling... Linking... .dub/build/application-debug-x86_64-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/compiler.o:(.data+0xb48): undefined reference to `_D6pegged8examples10arithmetic12__ModuleInfoZ' collect2: error: ld returned 1 exit status --- errorlevel 1 Error: Link command failed with exit code 1

This might be because of the changes made in commit 4f8d199https://github.com/PhilippeSigaud/Pegged/commit/4f8d199e214ee7dc1f35a10a837e18589b76f3e3 .

— Reply to this email directly or view it on GitHubhttps://github.com/PhilippeSigaud/Pegged/issues/131 .

PhilippeSigaud commented 10 years ago

OK, I removed the import. grammartester unit tests pass. Does that close the issue for you?

mpdn commented 10 years ago

Yep, it compiles and links fine now. Thanks a lot.

PhilippeSigaud commented 10 years ago

OK, cool.

On Wed, Feb 19, 2014 at 12:04 AM, Mike Pedersen notifications@github.comwrote:

Yep, it compiles and links fine now. Thanks a lot.

— Reply to this email directly or view it on GitHubhttps://github.com/PhilippeSigaud/Pegged/issues/131#issuecomment-35446540 .