4coder»Forums
Robert Herman
7 posts
Customization compilation failing
Edited by Robert Herman on Reason: Initial post
I followed the directions here:

[url=]https://4coder.handmade.network/f...omization_layer_-_getting_started[/url]

on my work PC and it worked great.

I then tried it at home, and the Compilation window in 4coder comes back with this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.8.5
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
custom_layer.cpp
4coder_metadata_generator.cpp
custom_layer.cpp
LINK : fatal error LNK1104: cannot open file 'custom_4coder.dll'
Could Not Find C:\4coder\*.exp
Could Not Find C:\4coder\*.lib
exited with code 0


Paths and files are the same. Work PC is Windows 7, and I start 4coder by clicking on the 4ed.exe in file explorer.

On my home PC, Windows 8.1, I need to run 4ed.exe -f 32 from the command line due to a high-dpi screen and rendering.

Both PCs are 64-bit.

I am a bit feverish now, so perhaps I am missing something obvious. Any help is much appreciated!
Allen Webster
476 posts / 6 projects
Heyo
Customization compilation failing
Edited by Allen Webster on
I notice specifically this line:
1
LINK : fatal error LNK1104: cannot open file 'custom_4coder.dll'


The most common cause of that is that you have the dll loaded.

Are you trying to build while 4coder is open?
Robert Herman
7 posts
Customization compilation failing
You got it! Thanks.
I'm just getting back into C after many years.


What is alt-m for, since that was what I used to try to build my custom_layer.cpp from within 4coder?

Thanks again.


Allen Webster
476 posts / 6 projects
Heyo
Customization compilation failing
I use it for triggering builds in projects other than 4coder. Editing the code for your editor with your editor is a bit of a bootstrapping problem that I haven't solved yet. It'll come eventually, but right now I just keep a separate copy of 4coder in a different folder so I can run it and build the in-development one at the same time.