Make error 193

g++ -I "./include" -c ./src/BSTDugum.cpp -o ./lib/BSTDugum.o g++ -I "./include" -c ./src/Kontrol.cpp -o ./lib/Kontrol.o g++ -I "./include" -c ./src/Program.cpp -o ./lib/Program.o ./lib/BSTDugum.o ....
g++ -I "./include" -c ./src/BSTDugum.cpp -o ./lib/BSTDugum.o
g++ -I "./include" -c ./src/Kontrol.cpp -o ./lib/Kontrol.o
g++ -I "./include" -c ./src/Program.cpp -o ./lib/Program.o
./lib/BSTDugum.o ./lib/Kontrol.o ./lib/Program.o -o ./bin/program
process_begin: CreateProcess(C:UsersmonsterDesktopODEV_3libBSTDugum.o, ./lib/BSTDugum.o 
./lib/Kontrol.o ./lib/Program.o -o ./bin/program, ...) failed.
make (e=193): Error 193
Makefile:3: recipe for target 'program' failed
mingw32-make: *** [program] Error 193

I can’t solve this problem everything looks good. I can debug this program on visual studio This is my makefile file :

program:BSTDugum.o Kontrol.o Program.o
    ./lib/BSTDugum.o ./lib/Kontrol.o ./lib/Program.o -o ./bin/program
BSTDugum.o:
    g++ -I "./include" -c ./src/BSTDugum.cpp -o ./lib/BSTDugum.o
Kontrol.o:
    g++ -I "./include" -c ./src/Kontrol.cpp -o ./lib/Kontrol.o
Program.o:
    g++ -I "./include" -c ./src/Program.cpp -o ./lib/Program.o

halfer's user avatar

halfer

19.7k17 gold badges95 silver badges183 bronze badges

asked Dec 11, 2019 at 20:14

adakakif's user avatar

0

Add g++ or the linker you’d like to use first on the line supposed to link your program:

program:BSTDugum.o Kontrol.o Program.o
        g++ ./lib/BSTDugum.o ./lib/Kontrol.o ./lib/Program.o -o ./bin/program

As it is right now, you’re trying to use the object file ./lib/BSTDugum.o as the linking command.

answered Dec 11, 2019 at 20:23

Ted Lyngmo's user avatar

Ted LyngmoTed Lyngmo

79.4k5 gold badges51 silver badges95 bronze badges

0

Topic: Error 193 :(  (Read 16119 times)

when I start debugging it shows following…

Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:Documents and SettingsIrfanDesktopTemptest_1
Adding source dir: C:Documents and SettingsIrfanDesktopTemptest_1
Adding file: binDebugtest_1.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.7.50.20071127
Error creating process C:Documents and SettingsIrfanDesktopTemptest_1/bin/Debug/test_1.exe, (error 193).

The program has no error.
Any idea how to solve this problem?


Logged


You should try a path without spaces.

Dje


Logged


You should try a path without spaces.

Dje

sorry, i didnt understand.

could u plz clarify?


Logged


Try to move project to another place -> full path to the *.exe file should be without spaces and non-ascii characters.


Logged


Also you could try newer gdb, current version is 7.x.x


Logged

(most of the time I ignore long posts)
[strangers don’t send me private messages, I’ll ignore them; post a topic in the forum, but first read the rules!]


You should try a path without spaces.

Dje

Thanks,it worked….but isn’t this a little weird solution?

is there any explanation behind this?


Logged


Lots of command line tools use space as argument separator and you have to quote «your args with spaces» to use spaces in args.

Dje


Logged


Topic: Error 193  (Read 8879 times)

I’m using Windows 10 (64 bit) and when I want to compile my program, the debugger gives me the message
GDB command:
«-exec-run»
got the following issue:
«,msg=»Error creating process C:/Users/Albert/OneDrive/J341t351kpograms/People/people.exe, (error 193).»

I tried compiling with Lazarus 1.6 and with 1.6.2 too, but I got the same result. Could you help?


Logged


why are you building from your onedrive folder? copy your project to desktop or somewhere else and build from there.
the path looks fishy especially with a backwards slash.
also make sure the new path doesn’t have spaces between it.

« Last Edit: January 05, 2017, 10:38:23 pm by Xor-el »


Logged


I think this doesn’t matter. I usually run some other programs from OneDrive and they work. Now I tested starting the program from my PC but it gave me the same message as before…


Logged


have you tried copying the executable to a path without space and running it?


Logged


This path doesn’t contain any spaces, so yes… I tried?


Logged


Oh and btw my other programs are in the same path and they work well, so I think the problem is elsewhere


Logged


is your app standalone or it requires a dll.?
are you building for 32bit or 64bit?


Logged


1) Sorry but I don’t know :/

2) I use Windows 10 64 bit, is there an option which bitrate I want to build for?

Note: I tested, if I copy the whole source code and insert it into a new program’s one, building that program will send me the same message. Is this important?


Logged


1) Sorry but I don’t know :/

2) I use Windows 10 64 bit, is there an option which bitrate I want to build for?

Note: I tested, if I copy the whole source code and insert it into a new program’s one, building that program will send me the same message. Is this important?

can you upload a sample demo project that can be used to reproduce the error?


Logged


C:/Users/Albert/OneDrive/J341t351kpograms/People/people.exe

I’m worried about mixing slashes and backslashes in program path. Looks wierd on Windows. Are those special symbols in the folder name (Játékpograms)? Try different folder.
I see that others users on Google also get 193 errors when folder name contains a mixture of slashes and backslashes (special symbols).

« Last Edit: January 06, 2017, 08:30:00 am by Eugene Loza »


Logged


I’m worried about mixing slashes and backslashes in program path. Looks wierd on Windows.

Windows API does not care.

@Mr. Albert: please do as others have suggested. Save the project on a local harddrive (in a folder without spaces or sepcial characters). Report if the error persists then.

I’m using Windows 10 (64 bit) and when I want to compile my program, the debugger gives me the message
GDB command:

That is more than compiling, that is running inside the IDE.
Does compilation succeed (Menu->Run->Compile)?
If so, can you find the executable at the location C:UsersAlbertOneDriveJ341t351kpogramsPeoplepeople.exe?
If so, then this is a problem of gdb (the gnu debugger).

Is it at all possible to do in a console:

c:
cd UsersAlbertOneDriveJ341t351kpogramsPeople

Bart


Logged


1) I know using special characters is not a good idea, but Játékprograms is the folder of my other programs, and as I wrote it, they work well.
2) I’ve tried moving the files to another folder, like C:/Users/Levi/Documents/People/people1.exe but I got the same error message. It’s important, that my other programs are in the same folder, and they have never sent me any errors.
3) Compilation works well! —> The executable is in the right folder, but when I try to start it, Windows sends me the message «This application can’t open!«.

« Last Edit: January 06, 2017, 08:32:45 pm by Mr. Albert »


Logged



Logged

lainz.github.io


Which compiler version?
Which compiler options (copy them from Menu->Project->Project Options->Compiler Options, click on button «Show Options»).

You did not accidentally cross-compile to another architecture or OS?

Bart


Logged


Have you checked that your exe is not being detected as a virus (probable false positive).
try sending your exe to virustotal.com
To see if it is clear.

Do you have the same exe in the root of your c drive; if so try renaming it or removing it from the root.

If your application require any dll files; make sure that they are all where you expect them to be.

Just some ideas


Logged

The best way to get accurate information on the forum is to post something wrong and wait for corrections.


Понравилась статья? Поделить с друзьями:
  • Main bios checking error
  • Mailer error could not instantiate mail function
  • Mailbox format error
  • Make error 139
  • Mailbox delivery failure policy error