Thread: compilation problem C::B minigw gcc gnu

  1. #16
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Why do you refuse to post a build log?

    1. You do not know what a build log is.
    2. You are a help vampire.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  2. #17
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by inteligent View Post
    I'm followed the method of web site "CodeBlocks FAQ-compiling C::B" but I have always errors and they here is :

    ||=== Build: Debug in crypto (compiler: GNU GCC Compiler) ===|
    ld.exe||cannot find C:\openssl-master\crypto: Permission denied|
    ||error: ld returned 1 exit status|
    ||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 5 second(s)) ===|
    Post a full build log if you want help; do not post a build log and I will add you to the list of "Help Vampires"!

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #18
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Build log [to show you what one looks like]
    Code:
    -------------- Build: Debug in crpt (compiler: GNU GCC Compiler)---------------
    
    x86_64-w64-mingw32-g++.exe -Wall -fexceptions -g -IC:/msys64/mingw64/include/openssl -c C:/Users/stahta01/devel/test/crpt/main.cpp -o obj/Debug/main.o
    x86_64-w64-mingw32-g++.exe -LC:/msys64/mingw64/lib -o bin/Debug/crpt.exe obj/Debug/main.o   -lcrypto
    Output file is bin\Debug\crpt.exe with size 357.08 KB
    Process terminated with status 0 (0 minute(s), 22 second(s))
    0 error(s), 0 warning(s) (0 minute(s), 22 second(s))
    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  4. #19
    Registered User
    Join Date
    Dec 2019
    Posts
    10
    [QUOTE = stahta01; 1292481] Journal de build [pour vous montrer ŕ quoi on ressemble]
    [CODE] -------------- Build: Debug in crpt (compilateur: GNU GCC Compiler) --- ------------

    x86_64-w64-mingw32-g ++. exe -Wall -fexceptions -g -IC: / msys64 / mingw64 / include / openssl -c C: / Users / stahta01 / devel / test /crpt/main.cpp -o obj / Debug / main.o
    x86_64-w64-mingw32-g ++. exe -LC: / msys64 / mingw64 / lib -o bin / Debug / crpt.exe obj / Debug / main.o -
    Le fichier de sortie lcrypto est bin \ Debug \ crpt.exe avec une taille de 357,08 Ko
    Processus terminé avec l'état 0 (0 minute (s), 22 seconde (s))
    0 erreur (s), 0 avertissement (s) (0 minute (s) , 22 seconde (s))
    [/ CODE]

    Tim S. [/ QUOTE]

    I already showed a build log in my last messages who look like that and you told me it was generation messages.

    here is the new build log :
    Code:
    -------------- Build: Debug in crypto (compiler: GNU GCC Compiler)---------------
    
    
    g++.exe -LC:\msys64\mingw64\x86_64-w64-mingw32\lib -LC:\openssl-1.0.2j-fips-x86_64\OpenSSL\lib -o bin\Debug\crypto.exe obj\Debug\main.o   C:\openssl-master\crypto C:\openssl-1.0.2j-fips-x86_64\OpenSSL\lib\libcrypto.a C:\openssl-1.0.2j-fips-x86_64\OpenSSL\lib\libssl.a
    C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\openssl-master\crypto: Permission denied
    collect2.exe: error: ld returned 1 exit status
    Process terminated with status 1 (0 minute(s), 5 second(s))
    2 error(s), 0 warning(s) (0 minute(s), 5 second(s))

  5. #20
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Remove the bad project settings.

    Likely in linker search directory
    Code:
    C:\openssl-1.0.2j-fips-x86_64\OpenSSL\lib
    Code:
    C:\openssl-master\crypto
    Likely in library list
    Code:
    C:\openssl-1.0.2j-fips-x86_64\OpenSSL\lib\libcrypto.a
    Code:
    C:\openssl-1.0.2j-fips-x86_64\OpenSSL\lib\libssl.a
    Last edited by stahta01; 12-30-2019 at 09:06 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  6. #21
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Sorry about missing the build log you did post.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  7. #22
    Registered User
    Join Date
    Dec 2019
    Posts
    10
    Always the same mistakes.

    here is what i did in pictures :

    [ATTACH] 15926 [/ ATTACH]
    compilation problem C::B minigw gcc gnu-capture211-png
    compilation problem C::B minigw gcc gnu-capture212-png
    Attached Images Attached Images compilation problem C::B minigw gcc gnu-capture210-png 
    Last edited by inteligent; 12-30-2019 at 09:18 PM.

  8. #23
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Get rid of the things that are wrong! Like "C:\openssl-master\crypto".

    Edit: The library name is "crypto" not "C:\openssl-master\crypto"!
    Edit2: "crypto.dll" will likely work, also.
    Last edited by stahta01; 12-30-2019 at 09:31 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  9. #24
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Linker search directory likely not needed.
    Code:
    C:\msys64\mingw64\x86_64-w64-mingw32\lib
    I would add the needed linker search directory of
    Code:
    C:\msys64\mingw64\lib
    NOTE: I do prefer the non hard coded path that I posted in this thread better.
    Edit: Add non hard coded path
    Code:
    $(TARGET_COMPILER_DIR)lib
    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  10. #25
    Registered User
    Join Date
    Dec 2019
    Posts
    10
    That to work!! Thank you very munch of your help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 08-21-2012, 12:35 AM
  2. Need help installing MiniGW
    By kelso135 in forum C Programming
    Replies: 5
    Last Post: 09-10-2005, 07:49 AM
  3. need help downloading and installing MiniGW compiler
    By kelso135 in forum C Programming
    Replies: 3
    Last Post: 09-01-2005, 04:17 PM
  4. Compilation problem
    By Armatura in forum C++ Programming
    Replies: 5
    Last Post: 11-12-2003, 12:42 AM
  5. compilation problem
    By Abdi in forum C Programming
    Replies: 3
    Last Post: 05-28-2002, 10:59 AM

Tags for this Thread